Skip to content

Instantly share code, notes, and snippets.

Avatar
〽️

Yu-Cheng Chuang yorkxin

〽️
View GitHub Profile
@IanColdwater
IanColdwater / twittermute.txt
Last active Jun 11, 2021
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@jessuni
jessuni / GenerateAudioWaveform
Last active May 4, 2021
Audio Oscilloscope (Frequency Byte) - w/ web audio API and canvas
@fatum12
fatum12 / ttc2ttf.pe
Last active Apr 25, 2021
Unpack .ttc and .dfont to .ttf using FontForge
View ttc2ttf.pe
#!/usr/local/bin/fontforge
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc
fonts = FontsInFile($1)
n = SizeOf(fonts)
i = 0
while (i < n)
Open($1 + "(" + fonts[i] + ")", 1)
index = ToString(i + 1)
View app,assets,javascripts,static_resources.js
function requireAll(r) { r.keys().forEach(r); }
requireAll(require.context('../images/', true, /\..*$/));
requireAll(require.context('./vendors/', true, /\..*$/));
@iqbalhasnan
iqbalhasnan / carrierwave.rb
Last active Dec 19, 2019
carrierwave mini_magick image processing - quality, strip, exif rotation, gaussian blur, interlace
View carrierwave.rb
#config/initializers/carrierwave.rb
module CarrierWave
module MiniMagick
# Rotates the image based on the EXIF Orientation
def exif_rotation
manipulate! do |img|
img.auto_orient
img = yield(img) if block_given?
img
end
View gist:8858692

畢業出清 全部半價以下出清 大約是2.5折~4.x折的價格 剛考完的N2成績單:http://i.imgur.com/ELD8Nss.png

1.考上日檢N3的文法筆記本 原290 考上日檢N3的單字筆記本 原290 全新未用 原價580 售 250

2.考上日檢N2的文法筆記本 原290

@tmaier
tmaier / custom_plan.rb
Created Dec 31, 2013
Add Sidekiq support to Zeus. Allows to run Sidekiq with `zeus sidekiq`
View custom_plan.rb
require 'zeus/rails'
class CustomPlan < Zeus::Rails
def sidekiq
# Based on bin/sidekiq
require 'sidekiq/cli'
begin
cli = Sidekiq::CLI.instance
cli.parse
@afeld
afeld / gist:5704079
Last active Jun 5, 2021
Using Rails+Bower on Heroku
View gist:5704079
@igrigorik
igrigorik / links.md
Created Aug 28, 2012
HAR Show links & resources
View links.md
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: