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
version: '2' | |
networks: | |
# create a network to share between TICK services, so they can connect to each other by specifying influxdb network name | |
influxdb: | |
services: | |
telegraf: | |
image: telegraf:1.1.2 | |
container_name: telegraf1.1.2 |
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
angular.module('feathers') | |
.config([ 'ngAdminJWTAuthConfiguratorProvider', function (jwt) { | |
jwt.setJWTAuthURL('http://sandbox.foobar.feathers/auth/local') | |
jwt.setCustomLoginTemplate('login.html') | |
jwt.setCustomAuthHeader({ | |
name: 'Authorization', | |
template: 'Bearer {{token}}' | |
}) | |
} ]) |
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
angular.module('foobar.analytics', []) | |
.factory('$googleAnalytics', [ '$q', '$window', function ($q, $window) { | |
return { | |
startTrackerWithId: function (id, dispatchPeriod) { | |
var d = $q.defer(); | |
$window.ga.startTrackerWithId(id, dispatchPeriod, function (response) { | |
d.resolve(response); | |
}, function (error) { |
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/sh | |
sudo usermod -aG docker ubuntu | |
newgrp docker |
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
sudo apt-get install build-essential cmake git libirrlicht-dev libbz2-dev libgettextpo-dev \ | |
libfreetype6-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev \ | |
libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libhiredis-dev libcurl3-dev \ | |
libspatialindex-dev libncurses-dev luajit-5.1-dev doxygen libleveldb-dev libgmp3-dev \ | |
gettext postgresql-server-dev-9.4 | |
git clone https://github.com/minetest/minetest.git | |
cd minetest/ | |
cd games/ | |
git clone https://github.com/minetest/minetest_game.git |
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
# Convert jpg or jpeg to png | |
sips -s format png test.jpg --out test.png | |
# Convert png to icns | |
sips -s format icns icon.png --out icon.icns |
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
engines: | |
csslint: | |
enabled: true | |
duplication: | |
enabled: true | |
config: | |
languages: | |
- javascript | |
eslint: | |
enabled: true |
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
# List all available SDKs, Targets, ABIs,etc | |
android list sdk -a -e | |
# Install one of those gorgeou packages | |
android update sdk -u -a -t sys-img-x86_64-android-23 | |
# List available AVD targets | |
android list targets | |
# Create AVD |
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="../topeka-elements/theme.html"> | |
<link rel="import" href="../topeka-elements/topeka-resources.html"> | |
<link rel="import" href="../topeka-elements/topeka-app.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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |