This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function walkTheDOM(node,func){ | |
func(node); | |
node = node.firstChild; | |
while (node){ | |
walkTheDOM(node, func); | |
node=node.nextSibling; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
server_name subdomain.example.com; | |
return 301 https://$host$request_uri; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |