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 fullViewportBackground (image, viewport) { | |
// var contenedor = $('body'), | |
// imagen = contenedor.children('img'), | |
// width = imagen.width(), | |
// height = imagen.height(), | |
// iratio = width/height, | |
// cwidth = contenedor.width(), | |
// cheigth = contenedor.height(), | |
// cratio = cwidth/cheigth; |
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
var express = require('express') | |
, app = express() | |
, server = require('http').createServer(app) | |
, io = require('socket.io').listen(server) | |
, fs = require('fs') | |
, path = require('path') | |
, gpio = require('rpi-gpio') | |
server.listen(8000); |
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
/*jslint plusplus: true */ | |
function daysInMonth(month, year) { | |
'use strict'; | |
return new Date(year, month, 0).getDate(); | |
} | |
function generateCalendar(year) { | |
'use strict'; | |
var calendar = {}, | |
month, |
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
/*globals Snap,*/ | |
var s = new Snap(500, 375), | |
blue1 = '#1CC9C4', | |
blue2 = '#1A9FC2', | |
yellow = '#FFC83F', | |
red = '#C23150', | |
brown = '#AC9B7A', | |
purple = '#4B5E80', | |
white = '#EAE8B7'; |
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
for(var event in Schedule.getEvents(tipoEvento,rango[fechaInicio,fechaFinal]) { | |
Calendar.drawEvent(tipoEvento,fechaEvento,horaInicio,horaFinal); | |
} | |
// packages/appslife:schedule/server/getEvents.js |
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
Vector3 pos = Camera.main.ScreenToWorldPoint (new Vector3 (${Target}.position.x, ${Target}.position.y, 5)); | |
float angle = Mathf.Atan((pos.y - ${Center}.position.y) / (pos.x - ${Center}.position.x)) * Mathf.Rad2Deg; | |
if(pos.x < transform.position.x){ angle += 180; } // avoid 'flipping' the rotation | |
${Center}.transform.rotation = Quaternion.Euler(0, 0, angle); |
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
void Awake () | |
{ | |
hover = (body.mass * Physics.gravity.y) / -4; | |
} | |
void FixedUpdate () | |
{ | |
// compensate the spring in the controller to simulate the thortle without the spring in a real quadcopter controller | |
float thrust = hover + (Input.GetAxis ("Throttle") * throttle); | |
// FR front right |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>how row arrows</name> | |
<identifier>private.leftopt_plus_k_to_down</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::K, | |
ModifierFlag::OPTION_L, | |
KeyCode::CURSOR_DOWN |
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
;;; init.el --- Spacemacs Initialization File | |
;; | |
;; Copyright (c) 2012-2014 Sylvain Benner | |
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors | |
;; | |
;; Author: Sylvain Benner <sylvain.benner@gmail.com> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; |
OlderNewer