Skip to content

Instantly share code, notes, and snippets.

View sethkontny's full-sized avatar
😀
Venturing

seth kontny sethkontny

😀
Venturing
View GitHub Profile
@sethkontny
sethkontny / D3-TEST-2.markdown
Created October 5, 2013 01:33
A Pen by seth kontny.
@sethkontny
sethkontny / DIAMOND.markdown
Created October 14, 2013 04:13
A Pen by seth kontny.

DIAMOND

An expression of rotating shiny diamond.Those triangle shapes are made from SVG Polygon. I found SVG has a lot of potential for the 3D vector expression. Hope FF will work for it soon.

A Pen by seth kontny on CodePen.

License.

@sethkontny
sethkontny / TweetLove.markdown
Created October 14, 2013 04:15
A Pen by seth kontny.

TweetLove

A social experiment based on Twitter API. Got inspired by 500 Chrome Experiments. Used basic physics (spring/ease and friction). No libs needed. Hover the particles to change the tweet.

A Pen by seth kontny on CodePen.

License.

@sethkontny
sethkontny / Simple-Logo-Animation.markdown
Created December 18, 2013 00:26
A Pen by seth kontny.
@sethkontny
sethkontny / Beyond-Rubks-Cube-.markdown
Created January 17, 2014 21:45
A Pen by seth kontny.
$ easy_install shodan
# or easy_install -U shodan
# or pip install shodan
@sethkontny
sethkontny / fibonacci.js
Created January 18, 2014 06:44
A Fibonacci sequence generator written in JavaScript (Node.JS).
function fibonacci (upto) {
if(upto.length == 0) {
console.log("Usage: fibonacci <upto>.");
} else {
var first = 0, second = 1, sum;
var fibonacci_string = "";
fibonacci_string += (first + " " + second);
for (var counter = 0; counter < (upto - 2); counter++) {
sum = first + second;
fibonacci_string += (" " + sum);
public class Solution {
public int canCompleteCircuit(int[] gas, int[] cost) {
size = gas.length;
if (size == 0) return -1;
int src = 0, dest = 0, balance = 0;
while (true) {
if (balance + gas[dest] - cost[dest] >= 0) {
balance += gas[dest] - cost[dest];
dest = next(dest);
if (dest == src) return src;
function fibonacci (upto) {
if(upto.length === 0) {
console.log("Usage: fibonacci <upto>.");
} else {
var first = 0, second = 1, sum;
var fibonacci_string = "";
fibonacci_string += (first + " " + second);
for (var counter = 0; counter < (upto - 2); counter++) {
sum = first + second;
fibonacci_string += (" " + sum);