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> | |
<meta charset="UTF-8"> | |
<title>Hacker News</title> | |
<style> | |
#header { | |
background-color: #ff6600; | |
height: 25px; | |
width: 100%; | |
} |
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
use std::collections::VecDeque; | |
#[derive(Clone, Debug)] | |
pub enum Doc { | |
Nil, | |
Concat(Box<Doc>, Box<Doc>), | |
Nest(i32, Box<Doc>), | |
Text(String), | |
Line, | |
Union(Box<Doc>, Box<Doc>), |
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 python3 | |
from typing import Dict | |
from hypothesis import given, assume, reproduce_failure | |
import hypothesis.strategies as st | |
import unittest | |
import logging | |
class KeyValueStore: | |
def __init__(self): | |
self._storage = {} |
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
module LazyMarkdownBugReproduction exposing (main) | |
import Array exposing (Array) | |
import Dict exposing (Dict) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Lazy | |
import Html.Events exposing (onInput) | |
import Markdown |
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
#![feature(custom_attribute)] | |
#[macro_use] | |
extern crate diesel; | |
extern crate byteorder; | |
use diesel::prelude::*; | |
use diesel::pg::PgConnection; | |
//mod points; |
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
#[macro_use] | |
extern crate diesel; | |
#[macro_use] | |
extern crate diesel_codegen; | |
table! { | |
// table_a (tennant_id, part_number) { | |
table_a (tennant_id) { | |
tennant_id -> Int8, | |
part_number -> Int8, |
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
#[macro_use] | |
extern crate diesel; | |
#[macro_use] | |
extern crate diesel_codegen; | |
table! { | |
table_a (tennant_id, part_number) { | |
tennant_id -> Int8, | |
part_number -> Int8, |
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
module IteratorBench exposing (main) | |
import Benchmark exposing (Benchmark, benchmark2) | |
import Benchmark.Runner exposing (BenchmarkProgram, program) | |
import Time | |
import Html exposing (Html, div, text) | |
import Array exposing (Array) | |
main : BenchmarkProgram | |
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
module YourAPIClient exposing (Config, otherFunctions) | |
import Http | |
import Json.Decode as Decode | |
import Json.Encode as Encode | |
-- Config | |
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 os | |
import sys | |
import re | |
import string | |
expressions = [] | |
# elm produces nice output where each complete top level expression starts with | |
# a line with zero indentation and continues up until the next line with zero | |
# indentation |
NewerOlder