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
.centered { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
text-align: center; | |
} |
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> | |
#include <string> | |
using namespace std; | |
// declare main function with argv abilities | |
int main(int argc, char* argv[]) { | |
// first string | |
string statement; |
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
.center { | |
width: 500px; | |
position: absolute; | |
left: 50%; | |
margin-left: -250px; /* Exactly half of the width. */ | |
} | |
/* | |
Full Formula: | |
margin-left = width/2 if left = 50% |
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
var params = function () { | |
var vars = [], hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++) { | |
hash = hashes[i].split('='); | |
vars.push(hash[0]); | |
vars[hash[0]] = hash[1]; | |
} | |
return vars; | |
}() |
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
Intro: | |
- Name + Music | |
# Quote! | |
"If I have a thousand ideas and only one turns out to be good, I am satisfied." - Alfred Nobel | |
- One good idea is better than none! | |
- About Dynamite | |
- Created by Alert Nobel | |
- Yes, he also instituted the Nobel Peace Prize. |
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
name: Your New Jekyll Site | |
markdown: redcarpet | |
pygments: true | |
username: UserName | |
server_url: ftp.myserver.com | |
remote_dir: /public_html |
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
// Code: | |
var exec = require('child_process').exec; | |
var execute = function(command, callback){ | |
exec(command, function(error, stdout, stderr){ callback(stdout); }); | |
}; | |
// Example: | |
execute("git --version", function(version){ | |
console.log(version); | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 'json' | |
require 'httparty' | |
class Googl | |
include HTTParty | |
base_uri "https://www.googleapis.com" | |
headers "Content-Type" => "application/json" | |
def self.shorten(url) | |
post("/urlshortener/v1/url", :body => {:longUrl => url}.to_json)["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
rm -f ~/.zcompdump |