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
/* | |
Author: Stephen Bussard | |
Twitter: @sbussard | |
*/ | |
var sin = Math.sin, | |
cos = Math.cos, | |
tan = Math.tan, |
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
# add this line at the end of the file | |
python ~/.psam.py |
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
// created for apple.com/contact | |
"{ | |
'language': 'en-us', | |
'charset': 'utf-8', | |
'author': 'Apple Inc.', | |
'omni_page': 'How to Contact Us', | |
'publish-date': 'May 12, 2013', | |
'sitemap': 'http://www.apple.com/sitemap', | |
'shortcut-icon': 'http://www.apple.com/favicon.ico', | |
'viewport': 'width=1024', |
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
// requires jQuery obviously | |
$(function(){ | |
$('img').each(function(i, img){ | |
var $img = $(img); | |
var url = $img.attr('src'); | |
var w = $img.width(); | |
var h = $img.height(); | |
var canvas = $('<canvas data-image="'+i+'"></canvas>').attr({ width: w, height: h }); | |
$(img).replaceWith(canvas); |
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
* { | |
box-sizing: border-box; | |
} | |
body { | |
font-family: sans-serif; | |
margin: 0; | |
padding: 0; | |
background-color: #f0f0f0; | |
} | |
#logo { |
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-pages/core-pages.html"> | |
<link rel="import" href="../core-menu-button/core-menu-button.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<polymer-element name="my-element"> | |
<template> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
promptFunc() { | |
COOL_COLOR="\[\e[38;5;25m\]" | |
REPO_FORMAT="\[\e[48;5;233m\]" | |
DIM="\[\e[2m\]" |
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
# Add this to ~/.profile or ~/.bashrc or whatever | |
# ask for a confirmation before executing the following command | |
confirm() { | |
read -r -p "Are you sure? [y/N] " response | |
[[ $response =~ ^([yY][eE][sS]|[yY])$ ]] && $@ | |
} | |
export alias c=confirm |