Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
var EventEmitter = require('events').EventEmitter;
var fooEvents = new EventEmitter();
var Counter = React.createClass(){
mixins: [makeChangeEventMixin(fooEvents)],
getInitialState: function(){ return {count: 0} },
render: function(){return <div onClick={this.handleClick}>{this.state.count}</div>},
handleClick: function(){
this.emitStateChange({count: this.state.count + 1});
}
@Teino1978-Corp
Teino1978-Corp / AWSLambdaSimpleSMS.js
Last active January 19, 2016 00:51
AWS Lambda Function to send an SMS message via the Twilio API - https://www.twilio.com/api
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
<?php
/**
* GitHUB PayLoad Class Handler
*
* Requires GIT executable
* Passwordless SSH Key should be set up on the server
*
* Make sure this script has sufficient rights to run git
*
@Teino1978-Corp
Teino1978-Corp / app.js
Created November 11, 2015 18:32
React JS Event-Emitter Mixin and Example
var React = require("react"), Dom = React.DOM;
var LogOutButton = require('./src/logout');
var events = require('api/events');
var Main = React.createClass({
// this mixin provides this.emitLogout, and if we set onLogout it'll be called when "logout" is emitted
mixins: [events.mixinFor("logout")],
getInitialState: function(){
return {
@Teino1978-Corp
Teino1978-Corp / git-graph.rb
Created November 11, 2015 18:18
Ruby script that creates a Graphviz graph showing the high-level structure of a repository's history.
A ruby script that creates a Graphviz graph showing the high-level structure of a repository's history
Sample usage:
./git-graph.rb <path-to-repo> | dot -Tpng -ohistory.png /dev/stdin
./git-graph.rb <path-to-repo> --svg | dot -Tsvg -ohistory.svg /dev/stdin
Requires the Grit and fast_xs Ruby libraries. Use bundler to make sure they are installed.
Based on http://code.activestate.com/recipes/577572-display-a-git-repository/
@Teino1978-Corp
Teino1978-Corp / git-graph.rb
Last active November 11, 2015 18:18
git-graph
#!/usr/bin/env ruby
require 'grit'
$commits = {}
def commit_node_label(commit)
return "#{commit.id.slice 0,5}\\n(#{commit.message.split("\n")[0]})"
end
@Teino1978-Corp
Teino1978-Corp / testingplan.md
Created November 11, 2015 07:49
Testing plan for W3C - http://www.w3.org/

W3C QA Manager – Preliminary Project Plan

This document outlines a preliminary project plan for the W3C QA Manager position. It also identifies the stakeholders, their needs, and a set of tasks for the QA Manager to kick-start the project. I’ve assumed that the project will run for approximately 2 years. Some aspects may require additional funding from the W3C or its membership.

This is a draft/personal proposal for review by the general public. It has no official standing and is not endorsed by the W3C.

Responsibilities of the QA Manager

Having spoken to various stakeholders and W3C members, I’d like to propose that the QA manager have the following responsibilities (these cover the responsibilities listed on the W3C's description of the position, but go into a bit more detail on each):

  • Gather understanding of the requirements from the various industry sectors involved at the W3C. Particularl
@Teino1978-Corp
Teino1978-Corp / gist:68dae4898c13706a9ce4
Created November 11, 2015 07:27
BigBang Java Utilities
package routines;
import generated.Addr;
import generated.Application;
import generated.BasicPolicy;
import generated.Customer;
import generated.DTOARTrans;
import generated.DTOAccount;
import generated.DTOApplication;
import generated.DTOAssignedProvider;
@Teino1978-Corp
Teino1978-Corp / gistfile1.txt
Created November 11, 2015 02:02
Nvidia 9800GT
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Software only, hardware acceleration unavailable
Flash Stage3D: Software only, hardware acceleration unavailable
Flash Stage3D Baseline profile: Software only, hardware acceleration unavailable
Compositing: Hardware accelerated and threaded
Rasterization: Software only, hardware acceleration unavailable
Threaded Rasterization: Enabled
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Hardware accelerated
Aruns-iMac:FORGE TEST Aditya$ ./gradlew setupDecompWorkspace idea
****************************
Powered By MCP:
http://mcp.ocean-labs.de/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : snapshot_20141130
****************************
:extractMcpData
:getVersionJson