Skip to content

Instantly share code, notes, and snippets.

View atduskgreg's full-sized avatar

Greg Borenstein atduskgreg

View GitHub Profile
PGraphics pg;
PSurface surf;
void settings() {
size(320, 240);
}
void setup() {
pg = createGraphics(500, 200);
surf = pg.createSurface();
import processing.awt.*;
class PWindow extends PSurfaceAWT {
PWindowApp app;
PGraphics graphics;
int w;
int h;
PWindow(int x, int y, int w, int h) {
@atduskgreg
atduskgreg / PWindow.pde
Last active November 21, 2015 19:20
Example of creating a Processing sketch with multiple windows. NOTE: this doesn't work in Processing 3.0. See the Processing 3.0 version here: https://gist.github.com/atduskgreg/666e46c8408e2a33b09a
class PWindow extends Frame {
PWindowApp app;
PWindow(int x, int y, int w, int h) {
setBounds(x,y,w,h);
app = new PWindowApp();
app.setParent(this);
add(app);
app.init();
show();
import processing.video.*;
Movie video;
boolean videoLoaded = false;
void setup(){
size(512, 640);
selectInput("Select a video to play", "fileSelected");
}
We can't make this file beautiful and searchable because it's too large.
abu_dhabi_climate,Integrated Securities provides investors with a bespoke offering catering to all their securities trading requirements under one roof.,"The niche focus Integrated Securities has on ADX and DFM means that both retail and institutional clients benefit from local insight and experience, as well as having access to state-of-the-art technology to enhance their trading experience on UAE bourses. The ability to diversify investments and seek value in the equity markets continues to prove a real attraction to clients in the current low-interest climate.","With clients' specific needs and aspirations at the forefront of every decision taken, Integrated Securities' objective is to deliver excellence and results which surpass industry expectations. We will continue to enhance and augment Integrated Securities' offering to ensure that our clients can take advantage of an increased range of digital state-of-the-art products, while also benefiting from personalised update provided by an expert team of ded
place theme headline url
abu+dhabi empire Caribbean holidays: How Bermuda finally found its sea legs http://www.telegraph.co.uk/travel/destinations/centralamericaandcaribbean/bermuda/11983470/Caribbean-holidays-How-Bermuda-finally-found-its-sea-legs.html
abu+dhabi empire OPEC Members About To Flood Oil Markets http://www.fxempire.com/news/commodities-news/opec-members-about-to-flood-oil-markets-305600
abu+dhabi empire Round-the-world female aviator stops off for Dubai Airshow http://www.thenational.ae/business/the-life/round-the-world-female-aviator-stops-off-for-dubai-airshow
abu+dhabi empire Ziauddin Yousafzai & Image Nation Abu Dhabi Launch Campaign ... http://www.abudhabicityguide.com/news/news-details.asp?newsid=20346&newstype=Local%20News
abu+dhabi empire Landmark Abu Dhabi buildings turn blue for UN campaign http://www.khaleejtimes.com/nation/abu-dhabi/landmark-abu-dhabi-buildings-turn-blue-for-un-campaign
abu+dhabi empire Trending Topics: NYCFC continue to veer from conventional wisdom ... http://www.
import ipcapture.*;
IPCapture cam;
void setup() {
size(640,480);
cam = new IPCapture(this, "http://3636782061:80/mjpg/video.mjpg", "", "");
cam.start();
}
@atduskgreg
atduskgreg / main.cpp
Created August 17, 2015 03:52
Stockfish fork for position evaluation for odds
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
Copyright (C) 2008-2014 Marco Costalba, Joona Kiiski, Tord Romstad
Stockfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

1

Q: What is Leo McGarry's middle name?

A: Thomas

2

@atduskgreg
atduskgreg / illusion.md
Last active September 24, 2020 15:10
Art and Science of Illusion Notes