Skip to content

Instantly share code, notes, and snippets.

View AndreasPizsa's full-sized avatar
⌨️

Andreas Pizsa AndreasPizsa

⌨️
View GitHub Profile

extra+ extra+ · rewarding relationships http://extraplus.at

What we do

extra+ connects the world’s leading consumer brands with millions of gamers everywhere. From Apple, Adidas or The Body Shop to Microsoft, Otto and Zalando - they all work with us to reward their loyal customers with free virtual currency for their favorite game.

Who we are

We are an international team of experienced, results-driven professionals with diverse backgrounds who value working with honest, smart, creative, goal oriented, experienced and highly motivated team players.

@AndreasPizsa
AndreasPizsa / gist:8222428
Last active January 2, 2016 00:19
ember.js + Bootstrap: HOWTO make Tabs show correctly and make the .active tab initially visible.

Pardon the CoffeeScript.

In your code:

App.BootstrapInitComponent = Ember.Component.extend
	initTabs : (()->
		$('.nav-tabs .active').tab('show')
	).on 'didInsertElement'

window.snazzymaps = {
version : "1.0",
license : "MIT",
title : "Light Gray",
description :"Subtle gray colors for modern flat websites."
url : "http://snazzymaps.com/style/132/light-gray"
author: {
name : "ColorByt",
url : "http://themeforest.net/user/ColorByt"
},
@AndreasPizsa
AndreasPizsa / gist:9f80bea0011518caf340
Created September 20, 2014 13:01
Using the iron_mq node library with Promises
iron_mq = require 'iron_mq'
Promises = require 'bluebird'
Promises.promisifyAll iron_mq.Client.prototype; # here be magick
# Example
imq = new iron_mq.Client
project_id: 'dsdadasdasdas'
token: 'lqwe7skjancc'
queue = imq.queue 'myQueue'

Keybase proof

I hereby claim:

  • I am AndreasPizsa on github.
  • I am andreaspizsa (https://keybase.io/andreaspizsa) on keybase.
  • I have a public key whose fingerprint is DAA4 42EC 7494 3222 5363 B924 5C65 3514 BE27 5643

To claim this, I am signing this object:

@AndreasPizsa
AndreasPizsa / gist:4eea7957553ed661c4df
Created November 7, 2014 15:19
Fix Bluetooth Audio hickups on Mac OS X
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48
defaults write com.apple.BluetoothAudioAgent "Stream – Flush Ring on Packet Drop (editable)" 30
defaults write com.apple.BluetoothAudioAgent "Stream – Max Outstanding Packets (editable)" 15
defaults write com.apple.BluetoothAudioAgent "Stream Resume Delay" "0.75"
@AndreasPizsa
AndreasPizsa / HTTP Errors
Created December 8, 2014 16:03
List of Restify HTTP and REST Error Exceptions
100 restify.errors.ContinueError
101 restify.errors.SwitchingProtocolsError
102 restify.errors.ProcessingError
200 restify.errors.OKError
201 restify.errors.CreatedError
202 restify.errors.AcceptedError
203 restify.errors.Non-AuthoritativeInformationError
204 restify.errors.NoContentError
205 restify.errors.ResetContentError
206 restify.errors.PartialContentError
@AndreasPizsa
AndreasPizsa / parseWindowLocationQuery.js
Last active November 4, 2018 16:46
Parse URL query string in JavaScript
/**
* sets window.location.query, which is a hash with all parameters
* param names are all lowercase
* reference as window.location.query.myparameter
*/
(function parseWindowLocationQuery(w){
var d=decodeURIComponent,
q=w.location.query=w.location.query||{},
pairs=w.location.search.substr(1).split('&'),
i;
@AndreasPizsa
AndreasPizsa / works.ts
Created November 16, 2015 13:50
TS2 - lodash _.forEach
if (item.relations) {
item.relations.forEach((relation) => {
//
// ...
//
});
}
<html>
<head></head>
<body>
<h1>Hello, {{name}}</h1>
</body>
</html>