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/env bash | |
set -o nounset | |
#set -o errexit | |
set -o xtrace | |
USER="" | |
PASS="" | |
HOST="127.0.0.1:9091" |
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
import random | |
import itertools | |
import collections | |
import pprint | |
def flip(): | |
return bool(random.randint(0, 1)) | |
def flips(count): | |
return (flip() for _ in range(0, count)) |
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
swagger: "2.0" | |
info: | |
title: ASYNC REST API | |
version: 0.0.1 | |
contact: | |
name: ASYNC TEAM | |
url: https://example.com/ | |
host: "example.com" | |
basePath: /api/v1 | |
schemes: |
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
import scalaz.State | |
import scalaz._ | |
import Scalaz._ | |
sealed trait InputMsg{ | |
def id: Int | |
} | |
case class Started(id: Int) extends InputMsg | |
case class Stopped(id: Int) extends InputMsg |
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 CollectionElement extends React.Component { | |
constructor(props) { | |
super(props); | |
this.count = props.count; | |
this.pos = props.pos; | |
} | |
} | |
class AliasWidget extends CollectionElement { |
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/env python | |
import sys | |
import re | |
import os | |
import os.path | |
import argparse | |
import logging | |
import json | |
import contextlib |
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
yntax enable | |
colorscheme industry | |
set background=dark | |
set encoding=utf8 | |
set ffs=unix,dos,mac | |
set expandtab | |
set smarttab |
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
#!/bin/sh | |
set -o nounset | |
set -o errexit | |
set -o xtrace | |
source_dir="llvm.src" | |
build_dir="llvm.build" | |
target_dir="llvm.install" | |
svn_update() |
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/env python | |
import json | |
import argparse | |
import multiprocessing | |
import datetime | |
import gzip | |
import codecs | |
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
import http.server | |
import socketserver | |
import logging | |
import urllib.parse as p | |
PORT = 8000 | |
class ServerHandler(http.server.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
logging.error(self.headers) |
NewerOlder