Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View ewdlop's full-sized avatar
:octocat:
Meow

䨻-Ficus religiosa-Cousin ewdlop

:octocat:
Meow
View GitHub Profile
@ewdlop
ewdlop / Chars.java
Created March 23, 2025 18:16 — forked from LukasKalbertodt/Chars.java
All valid unicode characters which can be a part of a java identifier
public class Chars {
public static void main(String[] args) {
int k = 0;
for (int i = 0x20; i < 0x10FFFF; i++) {
if (Character.isJavaIdentifierPart(i)) {
System.out.print(new String(Character.toChars(i)));
k++;
if (k == 32) {
System.out.println();
k = 0;
@ewdlop
ewdlop / cjk.tex
Created January 14, 2025 21:35 — forked from iamalbert/cjk.tex
XeLaTex 中文
\usepackage{fontspec} %加這個就可以設定字體
\usepackage{xeCJK} %讓中英文字體分開設置
\setCJKmainfont{微軟正黑體} %設定中文為系統上的字型,而英文不去更動,使用原TeX字型
\XeTeXlinebreaklocale "zh" %這兩行一定要加,中文才能自動換行
\XeTeXlinebreakskip = 0pt plus 1pt %這兩行一定要加,中文才能自動換行
\defaultCJKfontfeatures{AutoFakeBold=6,AutoFakeSlant=.4} %以後不用再設定粗斜
\newCJKfontfamily\Kai{標楷體} %定義指令\Kai則切換成標楷體
\newCJKfontfamily\Hei{微軟正黑體} %定義指令\Hei則切換成正黑體
\newCJKfontfamily\NewMing{新細明體} %定義指令\NewMing則切換成新細明體
@ewdlop
ewdlop / catalan.pl
Created January 11, 2025 00:00 — forked from jeffreykegler/catalan.pl
A grammar that generates the Catalan numbers
#!perl
use 5.010;
use strict;
use warnings;
use English qw( -no_match_vars );
use Marpa::R2;
use MarpaX::Simple::Rules '0.2.6', 'parse_rules';
my $catalan_rules = parse_rules(<<"RULES");
@ewdlop
ewdlop / catalan.pl
Created January 11, 2025 00:00 — forked from jeffreykegler/catalan.pl
A grammar that generates the Catalan numbers
#!perl
use 5.010;
use strict;
use warnings;
use English qw( -no_match_vars );
use Marpa::R2;
use MarpaX::Simple::Rules '0.2.6', 'parse_rules';
my $catalan_rules = parse_rules(<<"RULES");
@ewdlop
ewdlop / Famous_female_coders.md
Created December 8, 2024 16:22 — forked from ZaynahGiti/Famous_female_coders.md
Famous female coders
@ewdlop
ewdlop / tdbalance.sh
Created November 26, 2024 23:15 — forked from sobelk/tdbalance.sh
TD Bank check balance shell script
#!/usr/bin/sh
DOMAIN="onlinebanking.tdbank.com"
COOKIEJAR="cookiejar-tdbank"
USERAGENT='Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2'
USERNAME="username"
read -sp "Password: " PASSWORD; echo
curl \
@ewdlop
ewdlop / tdbalance.sh
Created November 26, 2024 23:15 — forked from sobelk/tdbalance.sh
TD Bank check balance shell script
#!/usr/bin/sh
DOMAIN="onlinebanking.tdbank.com"
COOKIEJAR="cookiejar-tdbank"
USERAGENT='Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2'
USERNAME="username"
read -sp "Password: " PASSWORD; echo
curl \
@ewdlop
ewdlop / Github Webhook Tutorial.md
Created November 26, 2024 04:42 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
# JavaScript Generators and Concurrency
1. Why generators are a nice fit for handling a coroutine (source/sink)
2. How we use generators in the Dashboard app
3. What generators can do to help wrangle async behavior
Generators are functions that can be paused and resumed (think cooperative multitasking or coroutines)
Pitch: