Skip to content

Instantly share code, notes, and snippets.

@jjsub
jjsub / maps.js
Created August 18, 2014 18:40 — forked from chyld/maps.js
/* jshint unused:false, camelcase:false */
/* global AmCharts:true, google:true */
(function(){
'use strict';
$(document).ready(init);
let map;
let charts = {};

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

.oauth a {
text-decoration: none;
background: #239cbb;
box-sizing: border-box;
min-height: 35px;
width: auto;
display: inline-block;
padding: 0.9em 1.37em;
cursor: pointer;
color: #fff !important;
[
{
"Country":"Afghanistan",
"Visa Requirement":"Visa required[2]",
"Allowed Stay":"",
"Notes":"Visitors born in Afghanistan do not require a visa. Visitors arriving via military air need to legalize their stay if they wish to leave via commercial airline. All visitors are fingerprinted.[3]"
},
{
"Country":"Albania",
"Visa Requirement":"Visa not required[4][5]",
@jjsub
jjsub / .jshintrc
Last active August 29, 2015 14:07 — forked from chyld/.jshintrc
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
@jjsub
jjsub / gist:90eb57c9a3a15cf2e64d
Created November 19, 2014 21:26
AmCharts 101
Note: All the code is on a html file.
After download AmChart zip file from the website.
Follow the tutorial.
http://www.amcharts.com/tutorials/your-first-chart-with-amcharts/
<!DOCTYPE html>
Undo a commit and redo
$ git commit ... (1)
$ git reset --soft HEAD~1 (2)
$ edit (3)
$ git add .... (4)
$ git commit -c ORIG_HEAD (5)
1 This is what you want to undo
@jjsub
jjsub / Bootstrap
Last active August 29, 2015 14:15
Lets get our hands dirty with Bootstrap!
1) Create a project folder with any name you wish.
2) Download bootstrap from www.getbootstrap.com or do a $ bower install bootstrap
3) Extract the - /css - /fonts - /js files in to your bootstrap demo.
Command shift p | Package Manage
Command p
Command K + b | Hide the dir bar
Command Shift D | Duplicate