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
p { | |
font-family: Consolas, monaco, monospace; | |
} | |
span { | |
border-left: 2px solid; | |
} | |
.cursor { | |
-webkit-animation: blink .75s linear infinite; |
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
# -*- coding: utf-8 -*- | |
from heapq import heappush, heappop | |
from random import shuffle | |
import time | |
class Solver: | |
def __init__(self, initial_state=None): | |
self.initial_state = State(initial_state) | |
self.goal = range(1, 9) |
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
#include <vector> | |
#include <iostream> | |
#include <string> | |
class Person | |
{ | |
public: | |
Person(std::string const& name): name(name) {} | |
std::string getName() { |
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
#include <stdio.h> | |
typedef struct | |
{ | |
unsigned int a: 1; | |
unsigned int b: 1; | |
unsigned int c: 1; | |
} type; | |
int main() |
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
<!doctype html> | |
<html ng-app> | |
<head> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<style type="text/css" media="all"> | |
.bigger { | |
font-size: 4.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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#ZSH_THEME="jreese" | |
ZSH_THEME="candy" |
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 BinaryHeap: | |
"""Binary Heap implementation""" | |
def __init__(self): | |
""" | |
Initializing the heap with some values | |
T | |
__/ \__ |
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
updated file contents |
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
;(function() { | |
var TableInstanceListing = function(id) { | |
$.getJSON('entities/' + id + '/instances', function(jsonObj) { | |
draw(jsonObj); | |
}); | |
var buildTableHead = function(json, table) { | |
tHead = $('<thead>'); |
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
;(function(){ | |
var UIRootWidget = (function() { | |
var cache = new WidgetCache(); | |
var render = function() { | |
$.getJSON('entities', function(entities) { | |
draw(entities); | |
}); | |
}; | |
var itemClicked = function(entity) { |