Skip to content

Instantly share code, notes, and snippets.

View tingham's full-sized 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 / Remove-SafeGit.ps1
Created November 17, 2023 14:02
Powershell (ps1) command to nuke git project root but retain dotfiles such as .git | .gitignore | .editorconfig
# Nukes all your guts out
Get-ChildItem -Path "*" -Recurse | Where-Object { $_.Name -cnotlike ".*" } | % { git rm -rf $_.FullName }
# Straightens up the jimmy-jabby
git clean -fxd
# Does the thingamabob
git reset
# Shows you what you have
Get-ChildItem -Attributes ReadOnly,Hidden,System,Directory,Archive
@tingham
tingham / msketch.js
Created September 4, 2019 20:00
A NodeJS script to generate a new Processing.org Sketch file
#!/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> %
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
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
int width = 512;
int height = 512;
void setup ()
{
size (width, height, P3D);
colorMode(HSB, 100);
}
void draw ()
<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 August 9, 2013 04:16
Example of structuring your Processing sketch to avoid having to restart everything.
void setup ()
{
size(width, height, P3D);
thread("update");
}
void update ()
{
while (true) {
try {
@tingham
tingham / gist:1473032
Created December 13, 2011 17:29
npm Error 110 Debugging
// outbound nodejs test.
var http = require("http");
var options = {
host: "107.20.159.167",
port: 80,
path: "/",
method: "GET"
};
/*
* AppController.j
* AccTest
*
* Created by Thomas Ingham on May 17, 2010.
* Copyright 2010, Your Company All rights reserved.
*/
@import <Foundation/CPObject.j>