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
/* | |
var images = new pre.cache_request('./resources/images/','*', true, function(cache) { | |
handler.locals.cache = cache | |
}) | |
pre.directoryCache( [images] ) | |
if( local.cache[pathto+file] != undefined ) { | |
res.writeHead(200, {'content-type':mime}) |
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 subprocess | |
import select | |
import time | |
import sys | |
#no-nonsense python utility for app testing | |
#pythons subprocess class is really weird... | |
class pMonitor: | |
pM_proc = False | |
pM_path = False |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace settings |
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
void Tokenize(string s, langDef l) { | |
unsigned int cursor = 0; | |
unsigned int offset = 0; | |
string chunk = ""; | |
while (cursor + offset < s.length()){ | |
Token token(""); | |
Identity hint; |
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 <string> | |
#include <vector> | |
#include <regex> | |
#include <iostream> | |
/* affinity levels ergo, same level of presidence */ | |
#define _OPERATOR_PLUS 0xf0 | |
#define _OPERATOR_MINU 0xf1 | |
#define _OPERATOR_MULT 0xf2 | |
#define _OPERATOR_DIVI 0xf3 |
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 java.awt.*; | |
import javax.swing.*; | |
import java.awt.event.*; | |
class Calculator extends JFrame implements ActionListener { | |
int cols = 6; | |
JPanel[] row = new JPanel[cols]; | |
JButton[] button = new JButton[20]; | |
String[] buttonString = {"7", "8", "9", "+", |
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 <iostream> | |
#include <string> | |
using namespace std; | |
int good_search( int ary[], int size, int item ); | |
int main(int argc, char const *argv[]) | |
{ | |
int some_array[] = {1,3,4,5,123,2,123,0,515,13,41,3,12321}; |
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 <string> // for string :: iterator | |
#include <fstream> // for file stuff | |
#include <cstdlib> // for atoi | |
#include <vector> // for vectors | |
#include <cstring> // for c_str | |
#include <iostream> // for cout/in | |
using namespace std; | |
class myclass |
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
using namespace std; | |
class TokenProviderNFA { | |
private: | |
void MoveTo_Space(string::iterator * cursor, string *s) { | |
while( ++*cursor != s->end() && !isspace(**cursor)); | |
} | |
void MoveToNext(string::iterator * cursor, const char n, string * s) { | |
while (*cursor != s->end() && **cursor != n) | |
++*cursor; |
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
#ifndef ushort | |
#define ushort unsigned short | |
#endif | |
using namespace std; | |
/* 6 bytes */ | |
typedef struct state { | |
ushort From; | |
char On; | |
ushort To; |