This file contains hidden or 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
| <template> | |
| <style> | |
| </style> | |
| </template> | |
| <script> | |
| var Element = null; | |
| (function(currentScript) { | |
| var elemPrototype = Object.create(HTMLDivElement.prototype); // pick the appropriate prototype for your element! |
This file contains hidden or 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
| DEFAULT="[0m" | |
| PINK="[35m" | |
| GREEN="[32m" | |
| ORANGE="[33m" | |
| hg_branch() { | |
| BOOKMARK=`hg branch 2> /dev/null` | |
| if [ -n "$BOOKMARK" ]; then | |
| BOOKMARK="\e${DEFAULT} on \e${ORANGE}$BOOKMARK\e${DEFAULT}" | |
| fi |
This file contains hidden or 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
| // Setup your scene here | |
| var tex = null; | |
| var mat = new THREE.MeshBasicMaterial({}); | |
| var box = new THREE.Mesh( | |
| new THREE.BoxGeometry(100, 100, 100), | |
| mat | |
| ); | |
| window.THREE = THREE; | |
| var script = document.createElement("script"); |
This file contains hidden or 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
| // js/app.js | |
| function add(a, b) { | |
| return a+b; | |
| } | |
| function say(text) { | |
| document.body.textContent = text; | |
| } |
This file contains hidden or 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
| var soap = require("soap"); | |
| soap.createClient("http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", function(err, client) { | |
| if(err) { | |
| console.error("Can't create client", err); | |
| return; | |
| } | |
| client.CelsiusToFahrenheit({Celsius: "25"}, function(err, result) { | |
| if(err) { | |
| console.error("Can't call method", err); |
This file contains hidden or 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 getAngle(currentHeading, target) { | |
| if(currentHeading > 180) { | |
| target += 360; | |
| } | |
| return Math.abs(currentHeading - target); | |
| } |
This file contains hidden or 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
| package main | |
| import( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| "net/http" | |
| ) | |
| func main() { |
This file contains hidden or 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
| <link rel="import" href="../paper-tabs/paper-tabs.html"> | |
| <link rel="import" href="../paper-tabs/paper-tab.html"> | |
| <link rel="import" href="../paper-button/paper-button.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am avgp on github. | |
| * I am g33konaut (https://keybase.io/g33konaut) on keybase. | |
| * I have a public key whose fingerprint is C6C5 0090 A5BD DA3A BA52 26DA 78C5 C26F 75B1 EB5E | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| #!/bin/bash | |
| mkdir leeenux | |
| cd leeenux | |
| lb config --packages "openssh-client acpid acpi cpufrequtils pm-utils eeepc-acpi-scripts git-core vim gcc g++ libstdc++6 wpasupplicant xserver-xorg xserver-xorg-input-synaptics xserver-xorg-video-intel xserver-xorg-video-fbdev libgl1-mesa-dri pciutils firmware-iwlwifi firmware-atheros linux-sound-base alsa-base alsa-utils xfce4 xfce4-terminal xfce4-mixer xinit wireless-tools dhcpcd locate x11-xserver-utils gajim chromium-browser openoffice.org luvcview vlc okular xtightvncviewer netbeans-ide" --hostname moon --binary-images usb-hdd --bootappend-live "acpi_osi=Linux nomodeset locales=de_DE.UTF-8 keyboard-layouts=de" --apt-recommends false --binary-indices false --language de --distribution squeeze --archive-areas "main contrib non-free" | |
| echo "deb http://ftp.debian.org/debian/ squeeze main contrib non-free" >> config/chroot_sources/full.chroot | |
| echo "deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free" >> config/chroot_sources/full.chroot | |
| mkdir -p config/chr |