View autolevel.md

Instalando el sensor

Lo primero será imprimir el soporte, y para ello en vez de usar el soporte ofrecido por skynet, vamos a usar uno alternativo de thingiverse.

Para sensores de 18mm (LJ18A3-8-Z/BX -- LJC18A3-H-Z/BY) necesitáis la pieza de 18mm que se instalará entre el ventilador y el disipador:

// FALTA FOTO, TENGO QUE INSTALAR EL SOPORTE NUEVO

También tendremos que conectarlo a la placa en lugar del final de carrera Z:

View nginx-vhost
upstream api_node_js {
server 127.0.0.1:8080;
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/my-kickass-domain/public_html;
index index.html index.htm;
View modulepattern.md

Scopes en Javascript:

Si haces algo en plan:

var a = 10;

function foo() {
  console.log(a);
}
View backend.js
angular.module('plunker')
.config(function($provide) {
$provide.decorator('$httpBackend', angular.mock.e2e.$httpBackendDecorator);
})
.run(function($httpBackend) {
var things = [
{
id: 0,
title: 'Finish fake backend',
View app.conf
server {
server_name mroot.local;
root /var/www/laravel/mroot/client/tmp;
location / {
index index.html;
try_files $uri $uri/ /index.html =404;
}
location /api {
View laraveldemo.skema
[{"name":"User","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"Name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0}],"relation":[{"extramethods":"","foreignkeys":"","name":"gadgets","relatedmodel":"Gadget","relationtype":"hasMany","usenamespace":""}],"seeding":[]},{"name":"Gadget","color":"Blue","position":{"x":872,"y":48},"increment":true,"timestamp":true,"softdelete":false,"column":[{"name":"Name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c40","order":0}],"relation":[{"extramethods":"","foreignkeys":"","name":"owner","relatedmodel":"User","relationtype":"belongsTo","usenamespace":""}],"seeding":[]}]
View post-receive
#!/bin/sh
read oldrev newrev refname
LOGFILE=./post-receive.log
DEPLOYDIR=/var/www/lineman/project
echo -e "Received Push Request a $( date +%F )" >> $LOGFILE
echo " - Old SHA: $oldrev New SHA: $newrev Branch Name: $refname" >> $LOGFILE
View gist:6156815
serpIQ.factory('UserAccount', ['$resource', '$timeout', function($resource, $timeout) {
var userResource = $resource('/users/account', {}, {});
var accountInfo = {};
(function pollStatus() {
userResource.get({}, function(response){
accountInfo.foo = {
plan: response.plan,
View default
RAILS_ENV=production
RAILS_ROOT=/srv/http/ruby/thin
CMD="/srv/http/.rvm/gems/ruby-1.9.3-p194/bin/thin start -C current/config/thin.yml"