Skip to content

Instantly share code, notes, and snippets.

View tobiasmuecksch's full-sized avatar
💭
😃

Tobias Mücksch tobiasmuecksch

💭
😃
View GitHub Profile
@tobiasmuecksch
tobiasmuecksch / walkTheDom.js
Last active November 7, 2023 21:31
JavaScript: Walk the DOM (Go through all DOM Elements)
function walkTheDOM(node,func){
func(node);
node = node.firstChild;
while (node){
walkTheDOM(node, func);
node=node.nextSibling;
}
}
// 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!"
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?
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",
@tobiasmuecksch
tobiasmuecksch / chat-page.html
Last active September 13, 2017 08:41
MyInfiniteScroll
<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>
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name subdomain.example.com;
return 301 https://$host$request_uri;
}
@tobiasmuecksch
tobiasmuecksch / buster2bullseye.sh
Created November 7, 2021 09:29 — forked from waja/README.md
Migration from Debian Buster to Bullseye
Please also refer to http://www.debian.org/releases/bullseye/releasenotes and use your brain! If you can’t figure out what one of the commands below does, this is not for you. Expert mode only :)
# Crossgrading ?!?
[ "$(dpkg --print-architecture)" == "i386" ] && echo "How about crossgrading to amd64 as described in https://stbuehler.de/blog/article/2017/06/28/debian_buster__upgrade_32-bit_to_64-bit.html?"
# upgrade to UTF-8 locales (http://www.debian.org/releases/bullseye/amd64/release-notes/ap-old-stuff.en.html#switch-utf8)
dpkg-reconfigure locales
# remove unused config file
rm -rf /etc/network/options /etc/environment