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
[ | |
{ | |
"ID": 1031299789028, | |
"Name": "Tash-Murkon Prime - 2% Resrch-Invntion \u0026 Manfacting", | |
"SolarSystemId": 30001671, | |
"TypeId": 35826, | |
"RegionId": 0, | |
"Public": false | |
}, | |
{ |
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
#include <PubSubClient.h> | |
#include <SPI.h> | |
#include <Ethernet.h> | |
// don't futz with these, illicit sums later | |
#define RED 7// pin for red LED | |
#define GREEN 8 // pin for green - never explicitly referenced | |
#define BLUE 2 // pin for blue - never explicitly referenced | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; |
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
local redis = require 'redis' | |
local host = "127.0.0.1" | |
local port = 6379 | |
client = redis.connect(host, port) | |
redis.call = function(cmd, ...) | |
return assert(loadstring('return client:' .. string.lower(cmd) .. '(...)'))(...) | |
end |
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
define(['marionette', 'underscore'], function (Marionette, _) { | |
/** | |
* @class CachingRegion | |
*/ | |
return Marionette.Region.extend({ | |
show: function (view) { | |
this.ensureEl(); | |
this.currentView = view; | |
if (!_.isUndefined(view.cached)) { |
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
/** | |
* Creates (or emulates) drag & drop event | |
* @param type event type | |
* @param options event options | |
* @param transferData data attached to event transfer | |
* @returns {*} | |
* | |
* Usage: | |
* var event = createDragEvent('drop'); // or dragend, or dragstart, etc. | |
* // feel free to use event.dataTransfer.setData('key', value); |
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
#!/usr/bin/env python | |
import sys, MySQLdb, time | |
from pywws import WeatherStation | |
CLASS_ID = 20 | |
OBJECT_TITLE = u'ws' | |
ws = WeatherStation.weather_station() |
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 | |
# php switch for homebrew | |
# $ brew tap josegonzalez/php && brew install php54 --with-fpm && brew install php55 --with-fpm | |
# Note: | |
# error_log = /usr/local/var/log/php-fpm.log | |
# and | |
# daemonize = yes | |
# must be in php-fpm.conf |
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
javascript:(function(){ | |
var text = document.documentElement.outerHTML; | |
var id = 'letsRockAndPiuPiuPiu'; | |
var script = document.createElement('script'); | |
script.src='//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js'; | |
document.body.appendChild(script); | |
script.onload = function(){ | |
document.body.removeChild(document.body.lastChild); | |
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
protected function assertImage($expected, $actual, $message = '') | |
{ | |
$descriptors = array( | |
array('pipe', 'r'), | |
array('pipe', 'w'), | |
array('pipe', 'w'), | |
); | |
$command = 'compare -metric RMSE ' . escapeshellarg($expected) . ' ' . escapeshellarg($actual) . ' /dev/null'; | |
$proc = proc_open($command, $descriptors, $pipes); |
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
const WEATHER_ICON_CLEAR = 0; // ясно | |
const WEATHER_ICON_PARTY_CLOUDY = 1; // переменная облачность | |
const WEATHER_ICON_STRONG_CLOUDY = 2; // облачно | |
const WEATHER_ICON_CLOUDY = 3; // пасмурно | |
const WEATHER_ICON_LIGHT_RAIN = 4; // дождь | |
const WEATHER_ICON_RAIN = 5; // ливень | |
const WEATHER_ICON_SNOW = 6; // снег | |
const WEATHER_ICON_RAIN_AND_SNOW = 7; // снег с дождем | |
const WEATHER_ICON_THUNDER = 8; // гроза | |
const WEATHER_ICON_CASTLE = 9; // град |
NewerOlder