Skip to content

Instantly share code, notes, and snippets.

View jsyeo's full-sized avatar
๐Ÿ’ญ
๐Ÿ’ ๐”๐“พ๐“ฎ๐Ÿฅถ๐“ฑ๐“พ๐“ช :female_fairy: ๐“น๐“ฒ๐“ช๐“ธ๐Ÿ˜ป๐“น๐“ฒ๐“ช๐“ธ๐Ÿ‘ฃ

Jason Yeo jsyeo

๐Ÿ’ญ
๐Ÿ’ ๐”๐“พ๐“ฎ๐Ÿฅถ๐“ฑ๐“พ๐“ช :female_fairy: ๐“น๐“ฒ๐“ช๐“ธ๐Ÿ˜ป๐“น๐“ฒ๐“ช๐“ธ๐Ÿ‘ฃ
View GitHub Profile
@cheeaun
cheeaun / rdrc2016.md
Last active June 13, 2018 08:39
RedDotRubyConf 2016 links & resources ๐Ÿ˜˜
@jmb
jmb / README.md
Last active December 8, 2022 08:41
Google Calendar API v3 widget for Dashing

Description

Dashing widget to display the next and some subsequent Google Calendar events using the Google Calendar API v3.

I use this widget to display my shift calendar - see the screenshot below

Set up

This widget works with API v3 and requires a service account to be set up via the Google Developer's Console. Once a project is set up, enable the Calendar API. On the Credentials page create a new OpenID and download the p12 key file - set up the path to this file in the job file and grant the email address access to the relevant calendar.

@rizo
rizo / quotes.md
Last active August 29, 2015 13:57

"Most of the biggest problems in software are problems of misconception."

Rich Hickey in "Hammock Driven Development" at the first Clojure Conj, in Durham, North Carolina on October 23rd, 2010.

Quotes about Jon Skeet

โ€œJon Skeet doesn't need a debugger, he just stares down the bug until the code confessesโ€ Steven A. Lowe

โ€œWhen Jon Skeet's code fails to compile the compiler apologises.โ€ Anonymous

@weitsang
weitsang / nus-fyp-presentation-tips.md
Last active April 2, 2025 06:25
Tips for School of Computing Final Year Project Presentation.

FYP Final Presentation

Basic Principles

  • Show the examiners, and make them understand, clearly what you have achieved after about 400 hours of work over two semesters.
  • Demonstrate to the examiners that you know very well what you have done.
  • Keep the examiners happy.

Slides

@drhelius
drhelius / Game Boy Boot ROM Disassembly
Last active March 13, 2025 14:12
Game Boy Boot ROM Disassembly
LD SP,$fffe ; $0000 Setup Stack
XOR A ; $0003 Zero the memory from $8000-$9FFF (VRAM)
LD HL,$9fff ; $0004
Addr_0007:
LD (HL-),A ; $0007
BIT 7,H ; $0008
JR NZ, Addr_0007 ; $000a
LD HL,$ff26 ; $000c Setup Audio
@athos
athos / gist:1033052
Created June 18, 2011 12:34
An example code to generate a class with ASM in Clojure.
(import '[clojure.asm Opcodes Type ClassWriter]
'[clojure.asm.commons Method GeneratorAdapter])
(defn make-class [name]
(let [cw (ClassWriter. ClassWriter/COMPUTE_FRAMES)
init (Method/getMethod "void <init>()")
meth (Method/getMethod "int fact(int)")]
(.visit cw Opcodes/V1_6 Opcodes/ACC_PUBLIC (.replace name \. \/) nil "java/lang/Object" nil)
(doto (GeneratorAdapter. Opcodes/ACC_PUBLIC init nil nil cw)
(.visitCode)
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true