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
The MIT License | |
Copyright © 2010-2016 three.js authors | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
#!/bin/bash | |
#https://help.github.com/articles/syncing-a-fork/ | |
git fetch upstream | |
git checkout master | |
git pull | |
git merge upstream/master | |
git push |
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
.js-profile-personal-info-container { | |
position: fixed; | |
top: 0; | |
right: 0; | |
z-index: 3000; | |
width: 398px; | |
background-color: #eee; | |
zoom:62% | |
} |
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
// CodeMirror, copyright (c) by Marijn Haverbeke and others | |
// Distributed under an MIT license: http://codemirror.net/LICENSE | |
(function(mod) { | |
if (typeof exports == "object" && typeof module == "object") // CommonJS | |
mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed")); | |
else if (typeof define == "function" && define.amd) // AMD | |
define(["../../lib/codemirror", "../htmlmixed/htmlmixed"], mod); | |
else // Plain browser env | |
mod(CodeMirror); |
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
<?php | |
/** | |
* @desc Get git branch info/hash | |
* @author Misha M.-Kupriyanov https://google.com/+MishaMKupriyanov | |
* @link https://gist.github.com/printminion/3e4c099fbb9baa9393f0594ff9f5dd69 | |
*/ | |
echo "[i]Git" . join(':', getSCID()); |
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
/* | |
Talking to Hue from an Arduino | |
By James Bruce (MakeUseOf.com) | |
Adapted from code by Gilson Oguime. https://github.com/oguime/Hue_W5100_HT6P20B/blob/master/Hue_W5100_HT6P20B.ino | |
http://www.makeuseof.com/tag/control-philips-hue-lights-arduino-and-motion-sensor/ | |
Adapted for own purpose by @printminion: | |
Switch lamp color from green to red by activating PIN 2 (only if the hue bulb is in on state) | |
*/ | |
#include <ArduinoHttpClient.h> |
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
/* | |
Talking to Hue from an Arduino | |
By James Bruce (MakeUseOf.com) | |
Adapted from code by Gilson Oguime. https://github.com/oguime/Hue_W5100_HT6P20B/blob/master/Hue_W5100_HT6P20B.ino | |
*/ | |
#include <SPI.h> | |
#include <Ethernet.h> | |
// Hue constants |
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
<?php | |
$config = new Zend_Config( | |
array( | |
'database' => array( | |
'adapter' => 'Pdo_Mysql', | |
//'adapter' => 'Mysqli', | |
'params' => array( | |
'host' => 'mysql', | |
'dbname' => 'database', |
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
#!/usr/bin/env python3 | |
__author__ = "Klemen Tušar" | |
__email__ = "techouse@gmail.com" | |
__copyright__ = "GPL" | |
__version__ = "1.0.1" | |
__date__ = "2015-09-12" | |
__status__ = "Production" | |
import os.path, sqlite3, mysql.connector |
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
/** | |
* @desc Arduino (MKR1000) movement detection with keyestudio PIL sensors http://wiki.keyestudio.com/index.php/Category:Sensor | |
* @author Misha M.-Kupriyanov https://google.com/+MishaMKupriyanov | |
* @link https://gist.github.com/printminion/c89e04daba2cdd66af21f2c2d3688a44 | |
*/ | |
int ledPin = 13; // Connect LED to pin 13 | |
int switcher = 2; // Connect Tilt sensor to Pin2 | |