This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from django.http import HttpResponseRedirect, HttpResponse | |
from clickemgrupo import settings | |
import cgi | |
import simplejson as json | |
import oauth2 as oauth | |
from clickemgrupo.apps.user import models as user_models | |
from clickemgrupo.apps.shopping_cart import models as shoppingcart_models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from django.http import HttpResponseRedirect, HttpResponse | |
from clickemgrupo import settings | |
import cgi | |
import simplejson as json | |
import oauth2 as oauth | |
from clickemgrupo.apps.user import models as user_models | |
from clickemgrupo.apps.shopping_cart import models as shoppingcart_models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "testing one two three" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"actives": [ | |
{ | |
"m3u8": "/msfc/Edge.m3u8", | |
"servers": [ | |
"http://liveips.nasa.gov.edgesuite.net" | |
], | |
"bitrates": [], | |
"needs_index": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
#content { | |
margin: 0 auto; | |
text-align: center; | |
} | |
#controls * { | |
font-size: 2.5em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
sub fibonacci { | |
my $n = $_[0]; | |
if ($n <= 1) { | |
return $n; | |
} | |
else { | |
return fibonacci($n-1) + fibonacci($n-2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just a small mod in @jbochi's solution | |
#include <stdio.h>; | |
int fib(int n) { | |
if (n < 2) { | |
return n; | |
} else { | |
return fib(n - 1) + fib(n - 2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
more about this kata: | |
http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class O(): | |
def __repr__(self): | |
return "<" + ' *o* '.join(map(repr, self.funs)) + ">" if self.funs else "<composer>" | |
def __init__(self, funs=None): | |
self.funs = funs if funs else [] | |
def __rmul__(self, other): | |
other_funs = other.funs if isinstance(other, O) else [other] | |
return O(other_funs + self.funs) |
OlderNewer