This file contains hidden or 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
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Applicative | |
import Control.Monad | |
import Data.Aeson (FromJSON, parseJSON, (.:)) | |
import qualified Data.Aeson as AE | |
import Data.ByteString.Char8 (ByteString) | |
import qualified Data.ByteString.Lazy as LBS | |
import Network.Http.Client (Response, concatHandler, get) | |
import OpenSSL (withOpenSSL) |
This file contains hidden or 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
/**I actually needed a typed language to make this clear, but fret not, there's a ruby example below!*/ | |
public class Graph{ | |
static class Vertex{ | |
/** Every vertex is aware of its immediate adjacent neighbors*/ | |
private List<Vertex> adjacent_vertices; | |
public void add_adjacent(Vertex neighbor){ | |
adjacent_vertices.append(neighbor); | |
} | |
} | |
This file contains hidden or 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
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=NetBeans IDE 7.0 | |
GenericName=NetBeans IDE | |
Comment=NetBeans IDE | |
Icon=/opt/netbeans/nb/netbeans.png | |
Exec=/opt/netbeans/bin/netbeans | |
Category=Development;IDE;Java; | |
Type=Application | |
Terminal=false |
This file contains hidden or 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
/* TinyWM is written by Nick Welch <[email protected]>, 2005. | |
* TinyWM-XCB is rewritten by Ping-Hsun Chen <[email protected]>, 2010 | |
* | |
* This software is in the public domain | |
* and is provided AS IS, with NO WARRANTY. */ | |
#include <xcb/xcb.h> | |
int main (int argc, char **argv) | |
{ |
NewerOlder