Skip to content

Instantly share code, notes, and snippets.

View praveenvvstgy's full-sized avatar

Praveen Gowda I V praveenvvstgy

View GitHub Profile

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after

JSON API

Top Level

The top-level of a JSON API document has the following keys:

  • Resource names (posts, comments, people, etc.)
  • A meta section

Singular Resources

Twilight Theme Terminal Colors

Based on the timeless TextMate theme.

Basic Colors

Foreground:     #FEFFD3

Background: #141414

@praveenvvstgy
praveenvvstgy / css-tricks-videos.txt
Created July 15, 2013 20:31
Links to all CSS-Tricks videos screencasts
http://vnfiles.ign.com/ects/css-tricks/VideoCast-126.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-125.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-124-cache-bust.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-123.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-122.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-121.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-120.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-119.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-118.mp4
http://vnfiles.ign.com/ects/css-tricks/VideoCast-117.mp4
@praveenvvstgy
praveenvvstgy / >
Created July 17, 2013 10:09 — forked from anonymous/>
<!DOCTYPE html> <!-- Helpful things to keep in your <head/> // Brian Blakely, 360i -->
<head>
<!-- According to Heather Champ, former community manager at flickr,
you should not allow search engines to index your "Contact Us"
or "Complaints" page if you value your sanity. This is an HTML-
centric way of achieving that. -->
<meta name="robots" content="noindex" />
<!-- Suppress IE6's pop-up-on-mouseover toolbar for images, that can
interfere with certain designs. -->
@praveenvvstgy
praveenvvstgy / README.md
Last active December 27, 2015 13:19 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
// GLblackjack.c
// By Eric Stringer 2002
// E-mail: nexusone@netzero.net
// A openGL example program, plays black jack (21)
//
// Keyboard inputs: [ESC] = quit
// 'L' = enables/disables lighting
// 'V' = toggle ortho/prespective view
// 'D' = Deal cards
// 'H' = Hit (add a card to player)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
@praveenvvstgy
praveenvvstgy / synchgh-pages
Last active August 29, 2015 14:04
Sync master with gh-pages by adding these lines to .git/config under [remote “origin”]
push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master