out1.png, out2.png
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
#table declaration | |
CREATE TABLE `prices_by_seconds` ( | |
`ask_price` double, | |
`ask_size` int(11), | |
`bid_price` double, | |
`bid_size` int(11), | |
`last_trade_price` double, | |
`symbol` varchar(8), | |
`updated_at` datetime |
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
func getMarketHours() (time.Time, time.Time) { | |
url := "https://api.robinhood.com/markets/XNAS/hours/" + time.Now().Format("2006-01-02") + "/" | |
//tag for goto statement | |
L: | |
//get today's market info | |
res, err := http.Get(url) | |
if err != nil { | |
panic(err) | |
} |
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 com.sun.net.httpserver.*; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
public class Server { | |
public static void main(String[] args) throws IOException{ |
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
package db_test | |
import ( | |
"testing" | |
"math/rand" | |
"sort" | |
"time" | |
"fmt" | |
"encoding/base64" | |
) |
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
{ | |
"version": 8, | |
"name": "camo", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "template", | |
"openmaptiles:version": "3.x", | |
"maputnik:renderer": "mbgljs", | |
"inspect": true | |
}, |
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
type | |
SomeStruct = object | |
longPtr: uint64 | |
length: uint32 | |
var x: ptr SomeStruct | |
var dat: array[12, char] | |
for ch in mitems(dat): | |
ch = high(char) |
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> | |
char * mkstr() { | |
return "some data"; | |
} | |
char * mkstr1() { | |
return "data some"; | |
} |
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
void * 8 | |
C0 4 | |
C1 16 | |
C11 8 | |
C2 24 | |
C3 8 | |
C4 32 | |
pt 32 | |
c4->a 0x101457120 |
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 | |
# uses python 3 | |
# usage: pafile filename [pretty name] | |
# the file must not exist | |
import sys | |
from datetime import date | |
raise Exception('remove me and fill in `userid` and `author`') |
OlderNewer