Skip to content

Instantly share code, notes, and snippets.

View wangbus's full-sized avatar

James Wang wangbus

  • Slickage, OMNCorp
  • Honolulu, HI
  • X @wangbus
View GitHub Profile
@wangbus
wangbus / gist:1175871
Created August 27, 2011 21:11
twitter output
profile_background_color: '1A1B1F',
protected: false,
contributors_enabled: false,
profile_background_image_url: 'http://a3.twimg.com/profile_background_images/25916335/twitterbg.jpg',
url: null,
screen_name: 'sheedness',
name: 'Rasheed El-Hindi',
friends_count: 274,
profile_image_url_https: 'https://si0.twimg.com/profile_images/1498172879/AIR_20110816_00000_normal.jpg',
id: 34473984,
@wangbus
wangbus / gist:1224140
Created September 17, 2011 17:10
foursquare venues example json response.
{ keywords:
{ items:
[ { keyword: 'Coffee Shop', displayName: 'Coffee Shop' },
{ keyword: 'Bank / Financial',
displayName: 'Bank / Financial' },
{ keyword: 'Other - Food',
displayName: 'Other - Food' },
{ keyword: 'Bar', displayName: 'Bar' },
{ keyword: 'Asian', displayName: 'Asian' },
{ keyword: 'Chinese', displayName: 'Chinese' },
@wangbus
wangbus / gist:1225103
Created September 18, 2011 14:03
4sq categories
[2011-09-18 04:02:38.448] [INFO] console - { categories:
[ { shortName: 'Arts & Entertainment',
icon: 'https://foursquare.com/img/categories/arts_entertainment/default.png',
categories:
[ { shortName: 'Arcade',
icon: 'https://foursquare.com/img/categories/arts_entertainment/arcade.png',
categories: [ [length]: 0 ],
pluralName: 'Arcades',
id: '4bf58dd8d48988d1e1931735',
name: 'Arcade' },
git config --global github.user your-name
git config --global github.token your-token
or set g:github_user and g:github_token in your vimrc
or set shell env vars GITHUB_USER and GITHUB_TOKEN
"%% SiSU Vim color file
"" Slate Maintainer: Ralph Amissah <ralph@amissah.com>
" (originally looked at desert Hans Fugal <hans@fugal.net>
" http://hans.fugal.net/vim/colors/desert.vim (2003/05/06)
" :set background=dark
" :highlight clear
" if version > 580
" hi clear
" if exists("syntax_on")
" syntax reset
@wangbus
wangbus / gist:1285681
Created October 13, 2011 22:05
Maven Archetypes
1: remote -> com.agilejava.docbkx:docbkx-quickstart-archetype (-)
2: remote -> com.cedarsoft.open.archetype:multi (-)
3: remote -> com.cedarsoft.open.archetype:simple (-)
4: remote -> com.force.sdk:springmvc-archetype (-)
5: remote -> com.google.code.plsqlmaven:plsql-package-archetype (a sample archetype that creates a project with a PL/SQL package inside and extends the parent project)
6: remote -> com.google.code.plsqlmaven:plsql-project-archetype (preconfigured PL/SQL project)
7: remote -> com.google.code.plsqlmaven:plsql-webapp-archetype (preconfigured PL/SQL webapp)
8: remote -> com.googlecode.apparat:apparat-archetype-asm (-)
9: remote -> com.googlecode.apparat:apparat-archetype-tdsi (-)
10: remote -> com.googlecode.gwtquery:gquery-archetype (-)
#hicapacity <wangbus> hicapbot weather honolulu
#hicapacity Weather for Honolulu, HI
Current conditions: Mostly Cloudy 23ºc
Humidity: 87%
/Users/jianshi/src/hicap-hubot/node_modules/hubot/src/hubot/irc.coffee:27
return this.bot.say(user.room, str);
^
TypeError: Cannot call method 'say' of undefined
at /Users/jianshi/src/hicap-hubot/node_modules/hubot/src/hubot/irc.coffee:27:29
NameVirtualHost *:8888
<VirtualHost *:8888>
ServerName local.beebleo.com
ServerAlias local.beebleo.com
DocumentRoot /Applications/MAMP/htdocs/beebleo
ErrorLog /Applications/MAMP/logs/beebleo.log.txt
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /Applications/MAMP/htdocs/beebleo>
Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
@wangbus
wangbus / maven2.rb
Created January 15, 2012 13:00
Homebrew Formula for Maven 2.2.1
require 'formula'
class Maven2 <Formula
url 'http://www.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz'
homepage 'http://maven.apache.org/'
if ARGV.build_head?
md5 'a40881f56a3087828545f30921ff393f'
else
md5 '3f829ed854cbacdaca8f809e4954c916'
@wangbus
wangbus / README.md
Created October 10, 2012 08:03
binaryjs-utf8test
We couldn’t find that file to show.