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 <stdio.h> | |
#include <stdlib.h> | |
#if defined(STL) | |
#include <vector> | |
int Calc(int count) | |
{ | |
std::vector<int> numbers; |
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
#! /usr/bin/env python | |
import os | |
import re | |
import sys | |
import shutil | |
import argparse | |
from collections import defaultdict | |
INDEX_HTML = """ |
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/foreign/dlfcn_backup.h 2018-11-18 21:22:45.000000000 +0100 | |
+++ include/foreign/dlfcn.h 2018-11-18 21:23:00.000000000 +0100 | |
@@ -3,7 +3,7 @@ | |
#include_next <dlfcn.h> | |
#include <stdio.h> /* stderr */ | |
#ifdef __CYGWIN__ | |
-typedef struct dl_info { | |
+/*typedef struct dl_info { | |
const char *dli_fname; | |
void *dli_fbase; |
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
#!/usr/bin/env bash | |
# | |
# Build and install the cctools the SDK and macports. | |
# | |
# This script requires the OS X SDK and the Clang/LLVM compiler. | |
# | |
pushd "${0%/*}" &>/dev/null |
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
#!/usr/bin/env bash | |
CC=clang | |
CCFLAGS="-c -I./libwebp-1.0.2" | |
function compile { | |
local DIR=$1 | |
local NAME=$2 | |
for file in `ls $DIR/*.c`; do | |
echo $file |
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
#! /usr/bin/env python | |
import sys, os | |
def Usage(): | |
print "Usage: ./binary2header.py <file>" | |
if __name__ == '__main__': | |
if len(sys.argv) < 2: | |
Usage() |
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
#! /usr/bin/env bash | |
# DISCLAIMER: | |
# This code IS WITHOUT ANY WARRANTY! | |
# Use at own risk | |
FOLDER='.vscode' | |
LAUNCH_FILE='launch.json' | |
MAGIC_FILE='vscode_script' |
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
// the size of the image that is made into mips | |
#define IMAGE_SIZE() 512 | |
typedef float ChannelType; | |
#include <stdio.h> | |
#include <array> | |
#include <vector> | |
#include <chrono> | |
#include "array.h" |
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 i386/ubuntu:18.04 | |
FROM ubuntu:18.04 | |
# Base stuff | |
RUN \ | |
apt-get update && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository -y ppa:webupd8team/java && \ | |
apt-get update && \ | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ |
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
#!/bin/bash | |
#################################################### | |
# Connect to running AWS instances using tag names # | |
# Author: [email protected] # | |
#################################################### | |
PEM_FILE="$HOME/.ssh/aws.pem"; | |
DEFAULT_USERNAME="ubuntu"; |