Skip to content

Instantly share code, notes, and snippets.

@bpanahij
bpanahij / Moto
Last active Nov 28, 2015
Moto React
View Moto
class Wheel extends React.Component {
constructor (props) {
super(props);
this.props.image = "https://s3.amazonaws.com/code_brian/react/Front+Wheel.png";
}
render() {
var styles = {
wheel: {
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://fb.me/react-with-addons-0.13.3.js"></script>
<meta charset="utf-8">
<title>Reaction</title>
<style id="jsbin-css">
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://fb.me/react-with-addons-0.13.3.js"></script>
<meta charset="utf-8">
<title>Reaction</title>
<style id="jsbin-css">
View keybase.md

Keybase proof

I hereby claim:

  • I am bpanahij on github.
  • I am brianjohnson (https://keybase.io/brianjohnson) on keybase.
  • I have a public key whose fingerprint is EDC5 7472 F5B5 DA7A 9D74 0344 3A9E 0438 CC8F 8132

To claim this, I am signing this object:

@bpanahij
bpanahij / ubuntu-compass-ruby
Created Sep 22, 2015 — forked from stephanetimmermans/ubuntu-compass-ruby
Install Compass+Ruby on Ubuntu 14.04
View ubuntu-compass-ruby
#https://gorails.com/setup/ubuntu/14.04
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
View gist:92de631e6b80e1a85988
Verifying that +brianj is my openname (Bitcoin username). https://onename.com/brianj
View ArrayToColorTextTable.php
<?php
/**
* See for Original: http://tonylandis.com/php/php-text-tables-class/
* Modified by Brian Johnson on 2013-07-09
*/
class ArrayToColorTextTable
{
/**
* @var array The array for processing
@bpanahij
bpanahij / loadmatches.js
Created Oct 23, 2012
Load Matches Controller (incomplete)
View loadmatches.js
var client = require('./client'),
helpers = require('../core/helpers'),
db = require('../core/db'),
fs = require('fs');
var line = require('../model/line');
client.on('Kp_Client_LoadMatchesAction', function (query, socket, callback) {
tlog(query);
var start = new Date().getTime();
@bpanahij
bpanahij / loadmatches.js
Created Oct 23, 2012
Load Matches Controller in progress
View loadmatches.js
formatMatchBookmakerTypeIndex
@bpanahij
bpanahij / asyncPattern.js
Created Oct 23, 2012
Asyn Pattern Anonymous Function
View asyncPattern.js
var lineFunctions = [];
matches.forEach(function (match) {
lineFunctions.push(
function (callback) {
//some function
});
});
async.parallel(lineFunctions, function (allResults) {
console.log(allResults);