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 main | |
import ( | |
"archive/zip" | |
"fmt" | |
"os" | |
) | |
func main() { | |
var r *zip.ReadCloser |
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 main | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"log" | |
"os" | |
) |
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 main | |
import ( | |
"fmt" | |
"image" | |
"image/png" | |
"log" | |
"os" | |
) |
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
from math import tanh | |
from pysqlite2 import dbapi2 as sqlite | |
class searchnet: | |
def __init__(self, dbname): | |
self.con = sqlite.connect(dbname) | |
def __del__(self): |
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 json | |
key = "fdksaljvdispoajhp89vdsa8sFDSpvdsa" | |
def flightsearch(origin, destination, depart_data): | |
url = "https://www.googleapis.com/qpxExpress/v1/trips/search?key=%s" % key | |
code = { |
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 the sbrk function */ | |
#include <unistd.h> | |
int has_initialized = 0; | |
void *managed_memory_start; | |
void *last_valid_address; | |
void malloc_init() { /* grab the last valid address from the OS*/ | |
last_valid_address = sbrk(0); | |
/* we don't have any memory to manage yet, so |
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
from pysqlite2 import dbapi2 as sqlite | |
import re | |
import math | |
def getwords(doc): | |
splitter = re.compile('\\W*') | |
# Split the words by non-alpha characters | |
words = [s.lower() for s in splitter.split(doc) | |
if len(s) > 2 and len(s) < 20] |
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 re | |
import math | |
def getwords(doc): | |
splitter = re.compile('\\W*') | |
# Split the words by non-alpha characters | |
words = [s.lower() for s in splitter.split(doc) | |
if len(s) > 2 and len(s) < 20] |
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> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
int h,w; | |
int width; | |
int height; | |
int total; | |
size_t frame_size; |
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
#-*- coding: utf-8 -*- | |
import sys | |
print("Input the item values:") | |
c = map(int, sys.stdin.readline().split(" ")) | |
c.insert(0, 0) | |
print("Input the item sizes:") | |
a = map(int, sys.stdin.readline().split(" ")) | |
a.insert(0, 0) |
OlderNewer