- elixir
- gitgutter
- SideBarEnhancements
- HTML5
- All Autocomplete
- Pretty JSON
- JavaScript & NodeJS Snippets
- gitsavvy
- Sublime-JSHint
- better coffeescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| directory "tmp" | |
| file "tmp/hello.tmp" => "tmp" do | |
| sh "echo 'Hello' > 'tmp/hello.tmp'" | |
| end | |
| task :default => 'morning:turn_off_alarm' | |
| namespace :morning do | |
| desc "Turn off alarm." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| // big -> small | |
| void BubbleSort(int a[]) { | |
| int i, j, temp; | |
| for (i = 0; i < 3; i++) { | |
| for (j = i + 1; j < 4 ; j++) { | |
| if (a[i] < a[j]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Pull this file down, make it executable and run it with sudo | |
| # wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
| # chmod u+x build-erlang-17.0.sh | |
| # sudo ./build-erlang-17.0.sh | |
| if [ $(id -u) != "0" ]; then | |
| echo "You must be the superuser to run this script" >&2 | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Enumerable | |
| def i_each_slice(n, &block) | |
| raise "invalid slice size" if n <= 0 | |
| i, ary = 0, [] | |
| each do |a| | |
| ary << a | |
| i += 1 | |
| if i >= n |
mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...
sudo apt-get install libxslt1-dev libxml2-dev libmagickwand-dev imagemagick libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs nodejs-legacy rar
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| let http = require('http'); | |
| let hnApi = 'http://node-hnapi.herokuapp.com/news'; | |
| let news = ''; | |
| let hackerNews; | |
| let req = http.get(hnApi, function(res) { | |
| res.on('data', function(chunk) { | |
| news += chunk; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "net/http" | |
| require "json" | |
| news_string = Net::HTTP.get(URI('http://node-hnapi.herokuapp.com/news')) | |
| news = JSON.parse(news_string) | |
| puts news |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_size": 14, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "save_on_focus_lost": true, | |
| "tab_size": 2, |
这几年,我只是一心想要前进,想要碰触那些无法触及的东西。 却不知道那具体指什么,也不清楚那可以说是威胁的想法从何而来。 只是不断的前进着,等我回过神来,日渐疲惫的心,是如此痛苦。 然后某一天清晨,我发觉自己从前那么认真诚恳的感情,已经消失得无影无踪,才了解到自己已经到了极限时,我辞职了。
我清楚的知道,我们无法保证将来能在一起,横亘在我们面前的是那沉重的人生和漫长的时间,让人望而却步。