Skip to content

Instantly share code, notes, and snippets.

@ajwarnick
ajwarnick / gist:5573828
Created May 14, 2013 05:02
start of tumblr theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
@ajwarnick
ajwarnick / gist:5588977
Created May 16, 2013 02:24
tumblr stuff
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
/* -------------------------------------------------
MINIMAL TWITTER FOR FLUID / USERSTYLES
Special thanks to:
Max Fenton (@maxfenton) for kicking this off
------------------------------------------------- */
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics {
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------
Symbol,Last price,Change
LMT 217.24 ▼1.14
BAESY,28.26,▼0.37
BA 118.16, ▲1.34
NOC 192.22,▼0.71
GD 137.11,▼0.13
RTN 124.48,▼0.54
BA 512 ▲2.17
LMT 218.66 +0.14
BAESY 28.63 +0.3
BA 121.06 +1.45
NOC 191.07 -1.05
GD 135.21 -0.53
RTN 125.01 +0.1
BA 504.29 +4.59
LLL 119.57 -0.98
UTX 96.97 +0.86
SAIC 45.74 +0.42
@ajwarnick
ajwarnick / sketch.js
Created April 16, 2017 01:26 — forked from bmoren/sketch.js
getting started with color tracking in tracking.js + p5.js
var colors;
var capture;
var trackingData;
function setup() {
createCanvas(windowWidth,windowHeight)
capture = createCapture(VIDEO); //capture the webcam
capture.position(0,0) //move the capture to the top left
capture.style('opacity',0.5)// use this to hide the capture later on (change to 0 to hide)...
### Keybase proof
I hereby claim:
* I am ajwarnick on github.
* I am warnick (https://keybase.io/warnick) on keybase.
* I have a public key ASC-FFNwSo1EzeaJVC4EX0VHZOvuj1zgDTkdefa7qgZSFQo
To claim this, I am signing this object:
touch index.html | mkdir js | touch js/scripts.js | mkdir scss | touch scss/styles.scss
//to add to package.json
"scripts":{
"scss":"sass --watch scss:css",
"server":"http-server",
"all":"sass --watch scss:css | http-server"
}
@ajwarnick
ajwarnick / Instructions
Last active October 29, 2018 19:09
Base
touch index.html
kdir scss
ouch scss/style.scss
mkdir js
touch js/main.js
npm init
npm i --save-dev sass
npm install --save-dev normalize.scss