Skip to content

Instantly share code, notes, and snippets.

View thosakwe's full-sized avatar
🎯
Focusing

Tobe Osakwe thosakwe

🎯
Focusing
View GitHub Profile
@thosakwe
thosakwe / searcher.asm
Created December 17, 2015 01:30
MASM32 Example - Using Assembly + WinAPI to browse the Internet
; We access the MangaEden API and request a list of the first 25 available manga. I used a buffer size of 5000, but feel free to modify it.
; I basically learned ASM today, just felt like posting this somewhere.
.386
.model flat, stdcall
option casemap:none
; Includes
include C:\masm32\include\windows.inc
include C:\masm32\include\kernel32.inc
@thosakwe
thosakwe / copy_dir.dart
Created July 17, 2019 15:54 — forked from tobischw/copy_dir.dart
Recursively copy directory in Dart (requires "path")
/*
* 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 {
@thosakwe
thosakwe / hey.lisp
Last active October 27, 2022 13:02
Flutter in 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 / README.md
Created November 12, 2016 02:17
Programming in Esperanto?

Esperanto???

Programs should be written in the second-person.

@thosakwe
thosakwe / user.js
Last active April 12, 2022 05:28
Press CTRL+SHIFT+Y/⌘+SHIFT+Y to click every 'Follow' button on the current Twitter page.
// ==UserScript==
// @name Auto-Follow Twitter Users
// @namespace https://gist.github.com/thosakwe/6f9fb4c3b7df5bac20c552781409dd41
// @version 1.0
// @description Press CTRL+SHIFT+Y/⌘+SHIFT+Y to click every 'Follow' button on the current Twitter page.
// @author thosakwe
// @match https://*.twitter.com/*
// @require https://code.jquery.com/jquery-3.1.1.slim.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.0/mousetrap.min.js
// @grant none
@thosakwe
thosakwe / user.js
Created January 26, 2017 16:46
Tampermonkey script to turn all your grades to A's.
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Turns your grades on Jupiter Ed to A's.
// @author Tobe O
// @match https://*.jupitered.com/*
// @require https://code.jquery.com/jquery-3.1.1.slim.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.0/mousetrap.min.js
// @grant none
@thosakwe
thosakwe / calc.dartl
Last active July 11, 2021 16:39
Dart lex/yacc?
%{
import 'calc.darty.dart';
%}
%%
[ \t\n] ;
[0-9]+ { yyval = int.parse(yytext); return T_NUMBER; }
\( { return T_LPAREN; }
\) { return T_RPAREN; }
\* { return T_TIMES; }
\/ { return T_SLASH; }
@thosakwe
thosakwe / monad.dart
Created June 28, 2021 21:03
Dart monad [WIP]
abstract class Monad<T> {
abstract MonadInstance<U> bind<U>(FutureOr<Monad<U>> Function(T) f);
abstract MonadInstance<T> wrap(T value);
}
abstract class EitherMonad<L, R> extends Monad<Either<L, R>> {
static EitherMonad<L, Exception> wrapTryCatch<L>(FutureOr<L> Function() f);
abstract EitherMonad<U, R> bindLeft(FutureOr<U> Function(L) f);
abstract EitherMonad<L, U> bindRight(FutureOr<U> Function(R) f);
@thosakwe
thosakwe / README.txt
Created March 3, 2018 20:34
Tampermonkey UserScript to auto-click Follow/Unfollow Buttons on Crowdfire
Press CTRL+SHIFT+Y (PC) or COMMAND+SHIFT+Y (Mac) to auto-click all the follow or unfollow buttons on Crowdfire,
with a small delay (200ms) in-between.
Sends a notification when the process completes. Saves a lot of time, and makes it much easier to grow your following
without all the clicking.
@thosakwe
thosakwe / about-me.md
Last active July 19, 2020 10:00
About Me