Skip to content

Instantly share code, notes, and snippets.

jared laser imjared

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am imjared on github.
  • I am imjared (https://keybase.io/imjared) on keybase.
  • I have a public key ASAyEZudDaehMsNgynlDs_jxZ6-KcVZF_EubkUKqG4IVCQo

To claim this, I am signing this object:

@imjared
imjared / credit-card.jsx
Created Jan 13, 2017
credit card field
View credit-card.jsx
import _ from 'lodash';
import cx from 'classnames';
import Payment from 'payment';
import React from 'react';
const CreditCard = React.createClass({
displayName: 'CreditCard',
isValid: false,
@imjared
imjared / interpolation.scss
Created Dec 31, 2016
classname interpolation
View interpolation.scss
$red: #ff0000;
$red-dark: #ffff00;
$navy: #0000ff;
$colorProfiles: (
red: $red,
darkRed: $red-dark,
navy: $navy
);
View lime.sh
#!/bin/bash
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1)
echo $projectFile
if [ $projectFile ]
then
subl $projectFile
else
subl $1
fi
View ticketflyTotal.js
var total = 0;
$('.results-list tr').not('thead tr').each( function() {
var amount = $(this).find('td').eq(4).text();
amount = amount.replace('$', '');
total = total + parseFloat( amount );
});
console.log( 'total amount: $' + total.toFixed( 2 ) + ', lol' );
@imjared
imjared / gist:a2ed311f5b2110dbdaf9
Created Feb 3, 2015
display list of optimizely tests
View gist:a2ed311f5b2110dbdaf9
javascript:(function(){var names="";for(var i=window["optimizely"].data.state.activeExperiments.length-1;i>=0;i--){var experimentId=window["optimizely"].data.state.activeExperiments[i];names+='<p style="font-size: 12px;">'+window["optimizely"].data.experiments[experimentId].name+"</span>";}var el=document.createElement("div");el.style.cssText="position: fixed; top: 0; right: 0; width: 15%; background: #000; color: #fff; padding: 5px; text-align: center;";el.innerHTML=names;var body=document.getElementsByTagName("body")[0];body.appendChild(el);window.setTimeout(function(){el.remove();},3000);})();
View imagedump.js
var canvas = document.getElementById("image-canvas");
var ctx = canvas.getContext("2d");
var pattern = {
background: "./output/background.jpg",
overlay: "./img/lucas.png",
points: [
{
xPercent: 10,
yPercent: 10,
@imjared
imjared / bootstrap-breakpoints.scss
Last active Aug 16, 2016
scss breakpoint helpers based on bootstrap
View bootstrap-breakpoints.scss
// breakpoint helpers based on bootstrap's breakpoints
@mixin xs {
@media #{screen} and (max-width: #{$screen-xs-max}) {
@content;
}
}
@mixin sm {
@media #{screen} and (min-width: #{$screen-sm-min}) and (max-width: #{$screen-sm-max}) {
@imjared
imjared / logo.scss
Last active Aug 29, 2015
source for codepen.io/imjared/full/athzf.
View logo.scss
@import "mathsass/dist/math.scss";
$radius: 12px;
$colors : (
1: #746f86,
2: #746f86,
3: #a16e8f,
4: #a16e8f,
5: #a9637b,
6: #a9637b,
@imjared
imjared / gist:10305012
Created Apr 9, 2014
show optimizely tests on page
View gist:10305012
javascript:(function(){var names="";for(var i=window["optimizely"].data.state.activeExperiments.length-1;i>=0;i--){var experimentId=window["optimizely"].data.state.activeExperiments[i];names+='<p style="font-size: 12px;">'+window["optimizely"].data.experiments[experimentId].name+"</span>";}var el=document.createElement("div");el.style.cssText="position: fixed; top: 0; right: 0; width: 15%; background: #000; color: #fff; padding: 5px; text-align: center;";el.innerHTML=names;var body=document.getElementsByTagName("body")[0];body.appendChild(el);window.setTimeout(function(){el.remove();},3000);})();
You can’t perform that action at this time.