Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nullcoding's full-sized avatar

Jaska Börner nullcoding

  • NullCoding Enterprises LLC / Börner Diversifizierten Kreativunternehmen GmbH
  • Philadelphia / New York / Baltimore / Birmingham UK / Berlin / Oldenburg
View GitHub Profile
@nullcoding
nullcoding / all_urls.txt
Last active December 23, 2015 18:09
Grabs latest JSONs from RS GE database fed from a newline-delineated text file, one URL per line.
http://services.runescape.com/m=itemdb_rs/api/graph/1317.json
http://services.runescape.com/m=itemdb_rs/api/graph/1111.json
http://services.runescape.com/m=itemdb_rs/api/graph/1161.json
http://services.runescape.com/m=itemdb_rs/api/graph/1271.json
http://services.runescape.com/m=itemdb_rs/api/graph/1123.json
http://services.runescape.com/m=itemdb_rs/api/graph/1073.json
http://services.runescape.com/m=itemdb_rs/api/graph/1091.json
http://services.runescape.com/m=itemdb_rs/api/graph/1397.json
http://services.runescape.com/m=itemdb_rs/api/graph/19404.json
http://services.runescape.com/m=itemdb_rs/api/graph/3749.json
@nullcoding
nullcoding / Heptagon.java
Created September 19, 2012 01:59
Heptagon Maker
import java.awt.*;
public class Heptagon {
private int x, y, radius;
private double area;
private Color theColor;
private boolean isVisible;
private Polygon polygon;
@nullcoding
nullcoding / tweetwoodall.cpp
Created August 24, 2012 21:41
Tweet a Woodall result in MuPuPriNT
case IDC_TWEETER:
if(wmEventW == BN_CLICKED)
{
WCHAR* TweetWood = new WCHAR[256];
WCHAR* TweetMyURL = new WCHAR[50];
WCHAR TweetBegin[256];
WCHAR TweetFormula[256];
WCHAR TweetN[16];
GetDlgItemText(wWnd, IDC_ENTER_N, TweetN, 16);
swprintf(TweetFormula, 256, L"%ls+x+2%%5E+%ls+-1", TweetN, TweetN);
@nullcoding
nullcoding / createnogen.cpp
Created August 21, 2012 21:49
WM_CREATE without Genesis
switch(msg)
{
case WM_CREATE:
{
HWND hStatus = CreateWindowEx(NULL, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE |
SBARS_SIZEGRIP, CW_USEDEFAULT, 650, CW_USEDEFAULT, CW_USEDEFAULT,
pWnd, (HMENU)IDC_MAIN_STATUS,
GetModuleHandle(NULL), NULL);
@nullcoding
nullcoding / create.cpp
Created August 21, 2012 21:47
WM_CREATE with Genesis
LRESULT CALLBACK WinProcPROTH(HWND pWnd,UINT msg,WPARAM wParam,LPARAM lParam) //WinProc for Proth Window
{
switch(msg)
{
case WM_CREATE:
{
Proth_OnCommand_Create (pWnd);
Web_OnCommand_Create (pWnd);
}
break;
@nullcoding
nullcoding / genesis.cpp
Created August 21, 2012 21:46
Genesis Example
#include "Genesis.h"
#include "stdafx.h"
#include "resource.h"
#include "includer.h"
#include "cpufinder.h"
using namespace std;
wchar_t* enterk = L"k...";
wchar_t* entern = L"n...";
@nullcoding
nullcoding / vectorless.m
Created August 3, 2012 22:42
GJSieve Mac Vectorless Demo
mpz_t remainder, quotient, squareroot;
mpz_init (remainder);
mpz_init (quotient);
mpz_init (squareroot);
unsigned long int trial = 2;
mpz_sqrt(squareroot, proth);
[ProgressBar incrementBy:delta];
for(trial=2; mpz_cmp_ui(proth,trial) > 0; trial++)
@nullcoding
nullcoding / gjsvector.cpp
Created August 3, 2012 22:38
GJSieve Vector Demo
std::vector<unsigned long int> ta(99999);
for (u=0; u<99999; u++, dos++) //we start at two because 1 is obviously always a factor
{
ta[u] = dos;
}
for (u=0; u<99999; u++)
{