Skip to content

Instantly share code, notes, and snippets.

Tobias Mücksch tobiasmuecksch

Block or report user

Report or block tobiasmuecksch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View yt-reverse-proxy.conf
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name subdomain.example.com;
return 301 https://$host$request_uri;
}
View chat-page.html
<ion-header>
<h5>CHAT</h5>
</ion-header>
<ion-content padding-lg no-bounce>
<my-infinite-scroll (ionInfinite)="$event.waitFor(updateMessagePage())" [position]="'top'" [enabled]="EnableLoader | async">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</my-infinite-scroll>
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: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// 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
tobiasmuecksch / walkTheDom.js
Created Mar 10, 2012
JavaScript: Walk the DOM (Go through all DOM Elements)
View walkTheDom.js
function walkTheDOM(node,func){
func(node);
node = node.firstChild;
while (node){
walkTheDOM(node, func);
node=node.NextSibling;
}
}
You can’t perform that action at this time.