Skip to content

Instantly share code, notes, and snippets.

@jtryan
jtryan / designer.html
Last active August 29, 2015 14:18
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
@jtryan
jtryan / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jtryan
jtryan / test.js
Last active August 29, 2015 14:18 — forked from Spoygg/test.js
describe('Test example.com', function(){
before(function(done) {
client.init().url('http://example.com', done);
});
describe('Check homepage', function(){
it('should see the correct title', function(done) {
client.getTitle(function(err, title){
expect(title).to.have.string('Example Domain');
done();
@jtryan
jtryan / README.md
Last active August 29, 2015 14:19 — forked from denji/README.md

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
@jtryan
jtryan / README.md
Last active August 29, 2015 14:20 — forked from denji/README.md

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
@jtryan
jtryan / Backbone Info
Created May 7, 2015 02:14
Best Backbone Template
https://github.com/backbone-boilerplate
git@github.com:backbone-boilerplate/backbone-boilerplate.git
git@github.com:tbranyen/backbone.layoutmanager.git
git@github.com:backbone-boilerplate/generator-bbb.git
---------------------------------------------------------------------------------------------------
Turn off power down on time out
Turn off power down on lid close
$ sudo stop powerd
---------------------------------------------------------------------------------------------------
Open port 22 for ssh
$ sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
---------------------------------------------------------------------------------------------------
Set hostname
$ sudo hostname <new-hostname>
@jtryan
jtryan / random-7char.rb
Created September 3, 2015 00:22
Generate random character string
('a'..'z').to_a.shuffle[0..7].join
@jtryan
jtryan / setHead.md
Created October 16, 2015 19:30
Git command to move HEAD

Easy Peasy

git remote set-head $REMOTE_NAME $BRANCH
@jtryan
jtryan / SearchnReplace.md
Created November 25, 2015 15:59
Quick search n replace
// Quick search and replace
// underscore with space

str.replace(/_/g, ' ');