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
| " Change the color scheme from a list of color scheme names. | |
| " Version 2010-09-12 from http://vim.wikia.com/wiki/VimTip341 | |
| " Press key: | |
| " F8 next scheme | |
| " Shift-F8 previous scheme | |
| " Alt-F8 random scheme | |
| " Set the list of color schemes used by the above (default is 'all'): | |
| " :SetColors all (all $VIMRUNTIME/colors/*.vim) | |
| " :SetColors my (names built into script) | |
| " :SetColors blue slate ron (these schemes) |
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
| $('#files_list > div > a[data-file-id]').each(function(index, item){TS.files.deleteFile($(item).data('file-id'))}) |
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 'rubygems' | |
| require 'lifx' | |
| class Lifx | |
| attr_reader :client, :light | |
| def initialize | |
| @client = LIFX::Client.lan | |
| @client.discover! do |c| |
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
| // main app.js | |
| var client = require('ranger').createClient('ROOM', | |
| 'SECRET'); | |
| var timestamp = require('./timestamp').timestamp; | |
| var getWeatherWrapper = require('./weather').getWeatherWrapper; | |
| var showMap = require('./map').showMap; | |
| var getTweets = require('./tweets').getTweets; | |
| client.room(ROOMID, function(room) { |
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
| RED=`echo -e '\033[01;31m'` | |
| BLUE=`echo -e '\033[01;34m'` | |
| GREEN=`echo -e '\033[01;32m'` | |
| NORMAL=`echo -e '\033[00m'` | |
| function is_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] | |
| } | |
| function parse_git_branch { | |
| if is_git_dirty |
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
| # | |
| # bash completion support for core Git. | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
| # Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # The contained completion routines provide support for completing: | |
| # | |
| # *) local and remote branch names |
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
| [alias] | |
| log --pretty=format:\"%h %ad | %s%Cgreen%d%Creset [%Cblue%an%Creset]\" --graph --date=short --topo-order |
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
| git log --diff-filter=D --summary | |
| git checkout [commit_hash]^ deleted_file.txt |
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 "rspec/core/formatters/base_text_formatter" | |
| class ProgressWithNames < RSpec::Core::Formatters::BaseTextFormatter | |
| def example_passed(example) | |
| super(example) | |
| output.print green(".") | |
| end | |
| def example_pending(example) | |
| super(example) |
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
| $ git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-z0-9])$/ {print ":" }' | xargs git push origin |
OlderNewer