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
/* 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 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 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 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
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 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 ( | |
"fmt" | |
"image" | |
"image/png" | |
"log" | |
"os" | |
) |
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 ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"log" | |
"os" | |
) |
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 ( | |
"archive/zip" | |
"fmt" | |
"os" | |
) | |
func main() { | |
var r *zip.ReadCloser |
NewerOlder