Skip to content

Instantly share code, notes, and snippets.

View reggi's full-sized avatar
🌺
Learning

Thomas Reggi reggi

🌺
Learning
View GitHub Profile

David Heinemeier Hansson Startup School 08

https://www.youtube.com/watch?v=0CDXJ6bMkMY

It's kinda like reverse terror alerts alerts.
So the probability of something like this happening (creating the next facebook), like a probability have you been crashing a plane, tiny!
But the fear you have of it, or did the desire you have to be the next Facebook, huge!
Because being broadcasted over and over again, you're being brainwashed.
@reggi
reggi / index.js
Created March 17, 2014 16:15
Requires every file in a directory into a single object.
var fs = require("fs");
var _ = require("underscore");
var dotty = require("dotty");
module.exports = function() {
var files = fs.readdirSync(__dirname);
files = _.difference(files, ["index.js", ".DS_Store"]);
var result = {};
_.each(files, function(value) {
var pieces = _.without(value.split("."), "js");
var _ = require("underscore");
var helper = {};
var middleware = {};
helper.reclusive = function(callback) {
var items = [];
items.push(function(req, res, next) {
return callback(null, req, res, next);
});
items.push(function(err, req, res, next) {
middleware.validation = function(req, res, next){
var names = [
"stripeToken",
"stripeEmail",
"stripeBillingName",
"stripeBillingAddressLine1",
"stripeBillingAddressZip",
"stripeBillingAddressCity",
"stripeBillingAddressState",
"stripeBillingAddressCountry",
<form action="http://google.com" method="get">
<button id="customButton">Purchase</button>
</form>
<script>
$('#customButton').click(function(){
var token = function(res){
var $input = $('<input type=hidden name=stripeToken />').val(res.id);
$('form').append($input).submit();
};

Open up this file:

sudo nano /etc/ssh/sshd_config

Use control+v to get to the bottom and paste in:

UseDNS no
{% assign argument_integer = 3 %}
{% assign return = false %}
{% if argument_integer %}
{% assign resivoir = "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0" %}
{% assign proto = resivoir | split: "." %}
{% assign string = "" %}
{% assign delimeter = "&$@" %}
{% assign count = 0 %}
{% for item in proto %}
var $ = jQuery;
var calculateAndApplyHeight = function() {
var height = $(".pane-commerce-cart-cart").height();
$(".page-shop").css("padding-bottom", height);
}
calculateAndApplyHeight();
$(".add_link").click(calculateAndApplyHeight);
thomas@workstation:node-canvas-npm$ npm install canvas --save
npm info it worked if it ends with ok
npm info using npm@1.4.6
npm info using node@v0.11.12
npm WARN package.json node-canvas-npm@0.0.0 No description
npm WARN package.json node-canvas-npm@0.0.0 No repository field.
npm WARN package.json node-canvas-npm@0.0.0 No README data
npm info trying registry request attempt 1 at 01:27:42
npm http GET http://registry.npmjs.org/canvas
npm http 304 http://registry.npmjs.org/canvas
@reggi
reggi / klaviyoRequest.js
Created April 16, 2014 22:53
To any and all looking to make a klaviyo request.
var request = require("request");
var klaviyoRequest = function(data, callback){
var dataJsonString = JSON.stringify(data);
var dataBuffer = new Buffer(dataJsonString);
var dataBase64 = dataBuffer.toString("base64");
request({
"url": "https://a.klaviyo.com/api/track",
"qs": {
"data": dataBase64,