Skip to content

Instantly share code, notes, and snippets.

View eugeneiiim's full-sized avatar

Eugene Marinelli eugeneiiim

View GitHub Profile
@eugeneiiim
eugeneiiim / gist:4167922
Created November 29, 2012 09:59
Posting a new message to Flowdock from Ruby via REST
def flowdock_message(msg)
url = URI.parse("https://#{FLOWDOCK[:token]}:DUMMY@api.flowdock.com/flows/#{FLOWDOCK[:org]}/#{FLOWDOCK[:flow]}/messages")
req = Net::HTTP::Post.new(url.path)
req.basic_auth FLOWDOCK[:token], 'DUMMY'
req.set_form_data({ :event => 'message', :content => msg })
res = Net::HTTP.new(url.host, url.port)
res.use_ssl = true
res.start {|http| http.request(req) }
end
@eugeneiiim
eugeneiiim / gist:6322717
Created August 23, 2013 18:50
The Ultimate Cheat Sheet For Starting And Running A Business (James Altucher)

The Ultimate Cheat Sheet For Starting And Running A Business

by James Altucher (Original)

No joke. This is going be a bullet FAQ on starting a business. If you're a lawyer, feel free to disagree with me so you can charge someone your BS fees to give the same advice.

If you can think of anything to add, please do so. I might be missing things. If you want to argue with me, feel free. I might be wrong on any of the items below.

There are many types of business. Depending on your business, some of these won't apply. All of these questions come from questions I've been asked.

The rules are: I'm going to give no explanations. Just listen to me.

### Keybase proof
I hereby claim:
* I am eugeneiiim on github.
* I am eugene (https://keybase.io/eugene) on keybase.
* I have a public key whose fingerprint is E018 E9EA 21E5 F05A CE95 B6F8 02F0 18CD 7B46 549B
To claim this, I am signing this object:
@eugeneiiim
eugeneiiim / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block
@eugeneiiim
eugeneiiim / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<title>Crossfilter</title>
<style>i
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700);
body {
font-family: "Helvetica Neue";
margin: 40px auto;
@eugeneiiim
eugeneiiim / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block
@eugeneiiim
eugeneiiim / index.html
Last active August 29, 2015 14:00 — forked from d3noob/.block
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Collapsible Tree Example</title>
<style>
.node circle {
/*!
* Bootstrap v2.3.2
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;ver
@eugeneiiim
eugeneiiim / rename-old-tag
Created June 18, 2015 05:25
Rename tag to old-tag
#! /bin/bash
set -e -x
TAG=$1
# echo $TAG
# exit
git tag old-$TAG $TAG
git tag -d $TAG