Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Making the world better by making my world worse.

Thomas Ingham tingham

💭
Making the world better by making my world worse.
View GitHub Profile
@tingham
tingham / msketch.js
Created Sep 4, 2019
A NodeJS script to generate a new Processing.org Sketch file
View msketch.js
#!/usr/bin/env node
/*
* Execute to vim by running
* $vim `./msketch.js`
* or
* $vim `./msketch.js someName`
*
* Add this to your vimrc to execute a sketch using F5
* autocmd Filetype java nnoremap <F5> :w<CR> :!cd %:p:h && processing-java --sketch=$PWD/ --run <CR> %
View link.link
View gist:ca1753c767936aaff8f2
Ericsson today announced that it is suing Apple for patent infringement after the Cupertino company refused Ericsson's licensing terms. Apple had been paying royalties to Ercisson, until its license agreement expired in January. Attempts at re-negotiation failed, triggering the patent infringement lawsuit.
> “We have offered them a license; they have a turned it down. We’re not a company that’s planning to extract more than the value we put on the table.”
— Kasim Alfalahi, Ericsson’s chief intellectual property officer.
According to Bloomberg, Ericsson is filing seven new lawsuits that span 41 patents. Also, they will ask the U.S. International Trade Commission to ban the sale of Apple products in the U.S. market.
When negotiations broke down in January, Apple sued Ericsson, claiming the company's royalty demands were excessive.
Our take on the news
View gist:2953b0eba4256f3c692f
MachineId:000F000A00310007000E008F933CAA2F
EpicAccountId:320d9b06d77843548520672ef9d4aa7f
Generating report for minidump
Application version 4.6.1-2386410+++depot+UE4-Releases+4.6
... built from changelist 2386410
... based on label ++depot+UE4-Releases+4.6
OS version 10.10.2.49417
View Color wheel thing
int width = 512;
int height = 512;
void setup ()
{
size (width, height, P3D);
colorMode(HSB, 100);
}
void draw ()
View gist:6201156
<style type="text/css">
div.eventWrapper {
display:block;
float:left;
clear:none;
width: 320px;
}
div.eventWrapper div.titleSlug {
display:block;
clear:both;
@tingham
tingham / gist:6191156
Created Aug 9, 2013
Example of structuring your Processing sketch to avoid having to restart everything.
View gist:6191156
void setup ()
{
size(width, height, P3D);
thread("update");
}
void update ()
{
while (true) {
try {
@tingham
tingham / gist:1473032
Created Dec 13, 2011
npm Error 110 Debugging
View gist:1473032
// outbound nodejs test.
var http = require("http");
var options = {
host: "107.20.159.167",
port: 80,
path: "/",
method: "GET"
};
View gist:408413
/*
* AppController.j
* AccTest
*
* Created by Thomas Ingham on May 17, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>
View gist:405783
+ (CPPopUpButton)themedSegmentedControl
{
var segmentedControl = [[CPSegmentedControl alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 25.0)];
[segmentedControl setTrackingMode:CPSegmentSwitchTrackingSelectAny];
[segmentedControl setSegmentCount:3];
[segmentedControl setWidth:40.0 forSegment:0];
[segmentedControl setLabel:@"foo" forSegment:0];
[segmentedControl setTag:1 forSegment:0];
You can’t perform that action at this time.