Programs should be written in the second-person.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defclass MyWidget (StatelessWidget) | |
(defun build (ctx) | |
(Column | |
(AppBar | |
:title (Text "Hello, Disp!") | |
:actions (list | |
(Text "A") | |
(Padding | |
:padding (EdgeInsets.all 16) | |
:child (Text "B")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%{ | |
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
I'm a 20-yr-old polyglot programmer who's been coding since the age of 7. I believe in free, equitable access to information, and giving back to the community.
Personal site: https://thosakwe.com
NewerOlder