Skip to content

Instantly share code, notes, and snippets.


Róbert Oroszi oroce

  • vernsurance
  • Budapest, Hungary
View GitHub Profile
View gist:ec3786ba7eff59963842220c3ffc56b4
(function (window, document, script, raven, el, first, loaded) {
raven = [];
window.onerror = function e(message, file, line, colno, ex) {
if (loaded) {
raven.push([message, file, colno, ex]);
el = document.createElement(script);
first = document.getElementsByTagName(script)[0];
oroce / gist:eeddcf623ff90dd8fbf8d9e21214b73c
Created Jul 16, 2016 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
View gist:eeddcf623ff90dd8fbf8d9e21214b73c

OS X Preferences

most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
View gist:59ea89cf7ca075dcd808
.use(function(next) {
if (hasAccess) {
return watchLaterControl(next);
View app.js
function sendAlert (property, value) {
console.log('Sending alert... %s : %s', property, value);
var payload = {
apiKey: '',
message: ''
var options = {
host: '',
View app.js
app.use(function *responseTime(next){
var start = new Date;
yield next;
var ms = new Date - start;
this.set('X-Response-Time', ms + 'ms');
app.use(function *logger(next){
var start = new Date;
yield next;
oroce / app.js
Created Aug 1, 2011 — forked from kwhinnery/app.js
Faking Long Touch on Android in Titanium Mobile
View app.js
//The table view row just has to have a full height view in order
//to trigger the TableView touchstart
function LongTouchTableViewRow(_title) {
var row = Ti.UI.createTableViewRow({
var v = Ti.UI.createView({