- We use it all the time
- I've been curious about it
- Good excuse to look into it
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
This file contains 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
function average(list) { | |
var sum = 0; | |
for (var num in list) { | |
sum += list[num]; | |
} | |
return sum / list.length; | |
} | |
console.log(average([20, 21, 220, 54])); |
This file contains 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
{ | |
"cmd" : ["bash", "--login", "-c", "bundle exec shotgun -p $port -o $ip $args"], | |
"info" : "Sinatra started. App running at $url", | |
"env" : {}, | |
"working_dir" : "$project_path", | |
"selector" : "source.rb" | |
} |
This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Take control of your development environment by using more of the keyboard and less of the mouse/trackpad. As you write your code, use (Mac and Sublime) keyboard commands/shortcuts to, well... kill it!
Mastering your text editor and Operating System (OS) will make you a more efficient and impressive developer.
Don't just read about these. If any of these are foreign / unfamiliar to you, be sure to practice them and make a mental note to use them when possible.
I hereby claim:
- I am kvirani on github.
- I am kvirani (https://keybase.io/kvirani) on keybase.
- I have a public key whose fingerprint is D4FE 1025 DFAA 2640 4D7A FAB9 F1CA A5A7 B0A0 BAF8
To claim this, I am signing this object:
This file contains 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
-- Modified version of http://www.commandprompt.com/ppbook/booktown.sql | |
-- For learning SQL on Heroku Postgres | |
-- Editted by Khurram Virani (@viranik) @lighthouse_labs | |
CREATE TABLE "books" ( | |
"id" integer NOT NULL, | |
"title" text NOT NULL, | |
"author_id" integer, | |
"subject_id" integer, | |
Constraint "books_id_pkey" Primary Key ("id") |
This file contains 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 "socket" | |
require_relative 'hangman/hangman' | |
@channel = "#bitmaker" | |
@greeting_prefix = "privmsg #bitmaker :" | |
@guess_prefix = "guess" | |
def connect_to_server | |
server = "chat.freenode.net" | |
port = "6667" |
This file contains 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 "socket" | |
@channel = "#bitmaker" | |
@greeting_prefix = "privmsg #bitmaker :" | |
@greeting = "hello" | |
def connect_to_server | |
server = "chat.freenode.net" | |
port = "6667" | |
nick = "HelloBot" |
NewerOlder