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
package main | |
import ( | |
"encoding/gob" | |
"fmt" | |
"os" | |
) | |
func writeGob(file_path string, object interface{}) error { | |
file, err := os.Create(file_path) |
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
setup = ''' | |
import pandas as pd | |
import numpy as np | |
df_small = pd.DataFrame(np.random.randn(10, 1), columns=[str(1)]) | |
df_medium = pd.DataFrame(np.random.randn(100, 10), columns=[str(i) for i in range(0, 10)]) | |
df_large = pd.DataFrame(np.random.randn(1000, 100), columns=[str(i) for i in range(0, 100)]) | |
''' | |
if __name__ == '__main__': | |
import timeit |
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
import AVFoundation | |
import Foundation | |
// The single FM synthesizer instance. | |
private let gFMSynthesizer: FMSynthesizer = FMSynthesizer() | |
public class FMSynthesizer { | |
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
import Darwin | |
public func arc4random <T: IntegerLiteralConvertible> (type: T.Type) -> T { | |
var r: T = 0 | |
arc4random_buf(&r, UInt(sizeof(T))) | |
return r | |
} | |
public extension UInt { | |
public static func random(lower: UInt = min, upper: UInt = max) -> UInt { |
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
import socket | |
import sys | |
import time | |
import struct | |
host = 'localhost' | |
port = 8888 | |
buffersize = 1024 | |
N = 1000000 | |
server_address = (host, port) |
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
version | date | |
---|---|---|
0.2 | 2008-09-02 | |
0.3 | 2008-10-29 | |
0.4 | 2008-11-24 | |
1.0 | 2008-12-11 | |
2.0 | 2009-05-24 | |
3.0 | 2009-09-15 | |
4.0 | 2010-01-25 | |
4.1 | 2010-03-17 | |
5.0 | 2010-05-25 |
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
import http.client | |
import ssl | |
import socket | |
import sys | |
import urllib | |
class HTTPSConnectionV3(http.client.HTTPSConnection): | |
def __init__(self, *args, **kwargs): | |
http.client.HTTPSConnection.__init__(self, *args, **kwargs) | |
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
//Type.java | |
public enum Type { A, B, C, D, E, F, G, H, I, J }; | |
// Base.java | |
public abstract class Base { | |
int i = 1; | |
final Type type; | |
public Base(Type type) { |
NewerOlder