Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tobe Osakwe thosakwe

🎯
Focusing
Block or report user

Report or block thosakwe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thosakwe
thosakwe / query.txt
Created Nov 12, 2019
Functional database query language
View query.txt
# create table users
schema users =
{
id: serial;
name: string;
age: int;
}
# select * from users
users
@thosakwe
thosakwe / hey.lisp
Last active Aug 31, 2019
Flutter in Lisp???
View hey.lisp
(defclass MyWidget (StatelessWidget)
(defun build (ctx)
(Column
(AppBar
:title (Text "Hello, Disp!")
:actions (list
(Text "A")
(Padding
:padding (EdgeInsets.all 16)
:child (Text "B"))))
@thosakwe
thosakwe / copy_dir.dart
Created Jul 17, 2019 — forked from tobischw/copy_dir.dart
Recursively copy directory in Dart (requires "path")
View copy_dir.dart
/*
* I'm sure there's a better way to do this, but this solution works for me.
* Recursively copies a directory + subdirectories into a target directory.
* There's also no error handling. Have fun.
*/
import 'dart:io';
import 'package:path/path.dart' as path;
Future<void> copyDirectory(Directory source, Directory destination) async {
View about-me.md
@thosakwe
thosakwe / key.md
Created Feb 28, 2019 — forked from shobotch/key.md
Twitter (un)official Consumer Key
View key.md

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN
Consumer key:    IQKbtAYlXLripLGPWd0HUA
View .vimrc
" Plugins
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'vim-syntastic/syntastic'
View arr.txt
let arr = rand float[2, 3];
let arr2 = arr + 2
print arr2
@thosakwe
thosakwe / the-scene.ts
Created Nov 20, 2018
Random sounds in Phaser
View the-scene.ts
import {Scene} from 'phaser';
export default class extends Scene {
private sounds: Phaser.Sound.BaseSound[] = [];
create() {
this.sounds.push(this.sound.add('song_1', '<url>', etc...));
this.sounds.push(this.sound.add('song_2', '<url>', etc...));
this.sounds.push(this.sound.add('song_3', '<url>', etc...));
this.sounds.push(this.sound.add('song_4', '<url>', etc...));
You can’t perform that action at this time.