Skip to content

Instantly share code, notes, and snippets.

@dhiazfathra
dhiazfathra / main.dart
Created May 13, 2024 02:54
Comparing Align, Container, and SizedBox
// Copyright 2019 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@dhiazfathra
dhiazfathra / main.dart
Last active February 20, 2024 06:15
Custom bubble shape in Flutter
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
# Generated by Powerlevel10k configuration wizard on 2020-03-28 at 20:26 WIB.
# Based on romkatv/powerlevel10k/config/p10k-pure.zsh, checksum 36890.
# Wizard options: compatible, pure, 12h time, 2 lines, sparse, transient_prompt,
# instant_prompt=off.
# Type `p10k configure` to generate another config.
#
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
#
# Differences from Pure:
#
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# manually added commands for pure #######
#fpath+=$HOME/.zsh/pure
#autoload -U promptinit; promptinit
@dhiazfathra
dhiazfathra / README.md
Last active March 12, 2019 07:22
Annisa readme

Annisa - the Assistant Bot

Introduction

Annisa is a contextual AI assistant built with the open source Rasa Stack.

Annisa is still in the very early version and can only work in a few use cases. Here are the use cases:

  • Inform dummy user current billing
  • Inform latest Biznet promotion
  • Inform film schedule
import csv
with open('Katalog Induk Hanya untuk di ambil sinopsis edited.txt') as f_read,\
open('katalog.csv', 'w', newline='') as f_write:
wr = csv.writer(f_write, quoting=csv.QUOTE_ALL)
lines = f_read.read().split('\n')
i = 2
while i < len(lines):
judul = ''
kategori = ''
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.