Skip to content

Instantly share code, notes, and snippets.

View jeffAwesome's full-sized avatar

Jeff Richardson jeffAwesome

View GitHub Profile
@jeffAwesome
jeffAwesome / config.json
Created June 29, 2017 02:30 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
/**
* Polyfill for the vw, vh, vm units
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/
* @author Lea Verou
*/
(function() {
if(!window.StyleFix) {
return;
var RTCPeerConnection = null;
var getUserMedia = null;
var attachMediaStream = null;
var reattachMediaStream = null;
var webrtcDetectedBrowser = null;
var webrtcDetectedVersion = null;
function trace(text) {
if (text[text.length - 1] === "\n") {
text = text.substring(0, text.length - 1);
(prn "Hello World")
@jeffAwesome
jeffAwesome / helloworld.rb
Created September 27, 2015 03:55
Hello World in ruby
module HelloWorld
def self.hello
puts 'Hello World'
end
end
require "./helloWorld"
helloWorld.hello()
# or
@jeffAwesome
jeffAwesome / helloworld.js
Created September 27, 2015 03:52
Hello world in js
(function() {
console.log('Hello World');
})();
@jeffAwesome
jeffAwesome / helloWorld.cs
Last active September 27, 2015 03:51
Hello World c#
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
class PaymentGateway
def initialize(customer, gatewayCustomer = Balanced::Customer)
@GatewayCustomer = gatewayCustomer
@customer = customer
end
def customer
#return @GatewayCustomer.find(@customer.customer_uri) if @customer.customer_uri
# if balanced customer doesn't already exist... lets make one
@jeffAwesome
jeffAwesome / js-module-pattern-ex-1.js
Last active August 29, 2015 14:21
Javascript Module Pattern
var IceIceBaby = (function(window, $, undefined) {
/*
For clarity when you see this being referenced, in this instance its referencing
a new object that was created when the new keyword was called. The new object
will have the init function and the stop function on it.
*/
var VanillaIce = function() {
@jeffAwesome
jeffAwesome / IIFE-example.js
Created May 25, 2015 02:43
Javascript Module Pattern
(function() {
// code
}());
// OR
(function() {
// code
})();