Skip to content

Instantly share code, notes, and snippets.


Tobias Mücksch tobiasmuecksch

View GitHub Profile
View yt-reverse-proxy.conf
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
server {
listen 80;
return 301 https://$host$request_uri;
View chat-page.html
<ion-content padding-lg no-bounce>
<my-infinite-scroll (ionInfinite)="$event.waitFor(updateMessagePage())" [position]="'top'" [enabled]="EnableLoader | async">
View ds4-controller-test.js
const dualShock = require('dualshock-controller');
//pass options to init the controller.
let controller = dualShock(
//you can use a ds4 by uncommenting this line.
//config: "dualshock4-generic-driver",
config: "dualShock4",
//if using ds4 comment this line.
//config : "dualShock3",
View Project Questionnaire
Here are a few questions that will tee us up for a good conversation:
- Can you tell me about your project in a few sentences?
- What’s the timeframe? Does a certain event depend on this project launching?
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design?
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site?
- How large is your team? What are the roles you envision on your end?
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on?
- How much money have you set aside for this project?
- Are you talking to others about this project? Might we ask how many? What do you like about their work?
View AngularJS: Provider vs Service vs Factory (Hello World Example)
// Source:!topic/angular/hVrkvaHGOfc
// jsFiddle:
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
tobiasmuecksch / walkTheDom.js
Created Mar 10, 2012
JavaScript: Walk the DOM (Go through all DOM Elements)
View walkTheDom.js
function walkTheDOM(node,func){
node = node.firstChild;
while (node){
walkTheDOM(node, func);