Skip to content

Instantly share code, notes, and snippets.

View thosakwe's full-sized avatar
🎯
Focusing

Tobe Osakwe thosakwe

🎯
Focusing
View GitHub Profile
import <http>
func WrapNum(value) -> { value }
timesTwo = .value * 2
print(timesTwo(WrapNum(2)).value)
srv = HttpServer(ctx {
{req, res} = ctx
@thosakwe
thosakwe / README.md
Last active February 28, 2020 00:10
Angel mailer...

angel_mail

A service for Angel that uses package:mailer to send e-mails. It also supports rendering templates (Jael, mustache, whatever), which makes developing email templates easier. In addition, if given an assetsDir, it will inline CSS stylesheets (use cacheAssets: true in production).

@thosakwe
thosakwe / query.txt
Created November 12, 2019 15:17
Functional database query language
# create table users
schema users =
{
id: serial;
name: string;
age: int;
}
# select * from users
users
@thosakwe
thosakwe / hey.js
Created August 10, 2019 02:51
alert
alert()
@thosakwe
thosakwe / key.md
Created February 28, 2019 06:49
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

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

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@thosakwe
thosakwe / .vimrc
Last active February 16, 2019 16:54
" 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'
@thosakwe
thosakwe / arr.txt
Last active January 14, 2019 22:44
ML lang?
let arr = rand float[2, 3];
let arr2 = arr + 2
print arr2
@thosakwe
thosakwe / the-scene.ts
Created November 20, 2018 21:05
Random sounds in Phaser
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...));
@thosakwe
thosakwe / build.txt
Created October 30, 2018 14:34
Simple build pipeline...
// Glob up C++ sources
var srcs = combine([
glob("src/*{.h,.cpp}")
])
// Exclude some sources
srcs = exclude(srcs, [glob("test/**")])
// Grab all the object files, creates multiple targets
var objects = compile_cpp(srcs).outputs