Skip to content

Instantly share code, notes, and snippets.

View udonmai's full-sized avatar
🎹

麥町 udonmai

🎹
View GitHub Profile
@jimothyGator
jimothyGator / README.md
Last active October 1, 2024 21:57
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@nightire
nightire / How to use Backbone.js.md
Last active November 14, 2017 08:15
How to use Backbone.js

Simple Starting Point

创建 Model

var Person = Backbone.Model.extend();
@intellecat
intellecat / decode_douban_read_test
Created February 29, 2012 07:35
解密豆瓣阅读数据试验
//t是"加密"的内容,在gist里面看不到 其实就是"var t = {"data":"M6XaU5P4..."
var t = {"data":"M6XaU5P4g6Arj50sU5XkCVK1l9GeU5AsisAlu0kqTTgew2A0AFGkltoHASeswNOpT_VLB8l2CsNl\nAsasU5XkCVK4d9G0C2ArAsA0AFG63j8WUtJ4U5AsisAsnIX0CjOsisXPAsasg5TsltH4UtNsisAs\nnIXSU$84Cj84g6Arj50slwHaC2ArAFm1gRJFgRJadIA0ARG1ltQsiF0sltTOlIArA1V0ejgXuDky\nfVAabao9EwzBleGNL3bzbaoqtHUyuSkuzNrEuskgB$9$ycoHiTq3EcAlAsasCRK6UjJ4ASkxAFmL\n3RK0CIArCRJ0g$N0AFmLdj8vCj84ASkR3joWC2asgJKoljK4C2ArCRJ0g$N0AFmL3$TZltT6ASkR\n3joWC2aslJKkURGHUFzsiRC1UwPHL9VKnw0slwHaC2ArAFm1gRJFgRJadIA0ARG1ltQsiF0sltTO\nlIArA1VLN$ahC1K4c8lsuSGDa9mpbaoiVvx03ehq$NOhj$HUNASJNjTCYFkrySwbBXcm9OmU1VZC\nEcAlAsasCRK6UjJ4ASkxAFmL3RK0CIArCRJ0g$N0AFmLdj8vCj84ASkR3joWC2asgJKoljK4C2Ar\nCRJ0g$N0AFmL3$TZltT6ASkR3joWC2aslJKkURGHUFzsiRC1UwPHL9VKnw0slwHaC2ArAFm1gRJF\ngRJadIA0ARG1ltQsiF0sltTOlIArA1$q$Taq9cK$1JvhMFhIETgejOlURNOpUaXpzLfEMF7PsvOc\nusku6QOcuskRw5Wxbao9YJZwj8HinCS3Nh1i1vOw9FG$1JJXUNt3WRd4TAo6d34eukJssebCuskU\ndTpz3r1NQNxjleG$xFdQTWBbtHvhHSPf76cNAmG9EwzBAmzyJJE9LO8pEscNAmGbSHUKAmzyJJyh\n1I1HDV5MAmzyJ
@mlambie
mlambie / inflections.rb
Created June 1, 2011 05:15
Manual inflections
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end