Pure CSS modal, just for fun
A Pen by Tuan Nguyen on CodePen.
[alias] | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
st = status -b -s | |
last = log -1 HEAD | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
testmerge = merge --no-commit --no-ff | |
unstage = reset HEAD |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/sh | |
# Sublime Text 3 install with Package Control | |
# http://simonewebdesign.it/install-sublime-text-3-on-linux/ | |
# Run this script with: | |
# $ curl -L git.io/sublimetext | sh | |
# Detect the architecture |
Pure CSS modal, just for fun
A Pen by Tuan Nguyen on CodePen.
If you just want to fix the issue quickly, scroll down to the "solution" section below.
If you're a Mac Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g
, you will see an error like this:
$ npm update npm -g
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
easterEgg.BadWorder.list={ | |
"4r5e":1, | |
"5h1t":1, | |
"5hit":1, | |
a55:1, | |
anal:1, | |
anus:1, | |
ar5e:1, | |
arrse:1, | |
arse:1, |
{ | |
"auto_complete_delay": 500, | |
"caret_style": "solid", | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"detect_indentation": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", |
# -*- coding: utf-8 -*- | |
import Image | |
def resize_and_crop(img_path, modified_path, size, crop_type='top'): | |
""" | |
Resize and crop an image to fit the specified size. | |
args: | |
img_path: path for the image to resize. |
class Graph { | |
num nodesNumber; | |
List<List<num>> edges; | |
Graph(this.nodesNumber, List<List<num>> edges) { | |
this.edges = new Iterable.generate(nodesNumber, | |
(_) => new List.fixedLength(nodesNumber)).toList(); | |
for (var e in edges) edge(e[0], e[1], e[2]); | |
} |