Skip to content

Instantly share code, notes, and snippets.

function sum8(_x, _x2) {
_function: while (true) {
var x = _x,
y = _x2;
if (y > 0) {
_x = x + 1;
_x2 = y - 1;
continue _function;
} else {
if (y < 0) {
<ads-accordion></ads-accordion>
<ads-accordion
header='{"src": "http://placehold.it/300x50/000/fff&text=header", "href": "http://newrelic.com"}'
footer='{"src": "http://placehold.it/300x50/000/fff&text=footer", "href": "http://newrelic.com"}'
data='[
{"src": "http://placehold.it/300x100/f0c/fff", "text": "Hooray", "cta": "join today", "href": ""}
]'
></ads-accordion>
//= require superagent
"use strict";
function poll(fn) {
return superagent.get("/leaderboards/3c3c4514-ac4c-4b45-a054-2a3baa237ac9", fn);
}
var Leaderboard = React.createClass({
getInitialState : function() {
@orodio
orodio / robot.clj
Last active August 29, 2015 14:11
robot.clj
(def robot (atom {:x 0 :y 0 :direction :north}))
(def behaviour {:left {:north :west
:west :south
:south :east
:east :north}
:right {:north :east
:east :south
:south :west
// @flow
"use strict";
module.exports = {
"315": {
"id" : 315,
"title" : "AngularJS: Novice to Ninja",
"src" : "//d2sis3lil8ndrq.cloudfront.net/books/angularjs1_medium_3d.png",
"href" : "http://www.sitepoint.com/store/angularjs-novice-ninja/",
{
trial: true,
cancelled: true,
title: "Monthly membership.....",
rate: "$9/month",
access_information: "blah blah blah",
access_action: { label: "resume", href: "", type: "resume" },
actions: [
{ label, href, type },
{ label, href, type }
var data = [
{name: "bob", read: false},
{name: "gary", read: true},
{name: "steve", read: true},
{name: "mike", read: false}
];
// isRead :: (d: object): bool
function isRead(d) {
return d.read;
@orodio
orodio / index.html
Last active December 29, 2015 17:18
d3 - blocks test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
* { margin:0; padding:0; }
body { background:aliceblue; }
</style>
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.3.10/d3.min.js"></script>
<script>
d3.select('body').append('h1').text('hello world')
</script>
@orodio
orodio / edh---CSS---Test.markdown
Created October 8, 2013 04:46
A Pen by Jameson Bjorkman.

edh - CSS - Test

The following test should allow us to acurately see your skill in CSS. We are looking for clean and efficient css that is easy to update and maintain.

A Pen by Jameson Bjorkman on CodePen.

License.

@orodio
orodio / _vendor.sass
Created August 13, 2013 03:53
A little more flexible Vendor prefix mixin for sass. Most of the time you don't need all the prefixes
=vendor($property, $value, $prefixes: webkit moz ms o)
@each $prefix in $prefixes
-#{$prefix}-#{$property}: unquote($value)
#{$property}: unquote($value)