Employs the inline sibling trick to achieve vertical centering. Updated to make use of trig to auto-calculate values.
Forked from Oliver Turner's Pen Isometric projection using skew.
httpProxy = require 'http-proxy' | |
proxy = httpProxy.createProxy ws:true | |
options = | |
'herp.dev': 'http://0.0.0.0:9008' | |
'derp.dev': 'http://0.0.0.0:3000' | |
server = require('http').createServer (req, res) -> | |
proxy.web req, res, { target: options[req.headers.host] }, (e) -> | |
log_error e, req | |
log_error = (e, req) -> return if not e |
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
do($ = window.jQuery, window) -> | |
r = require 'events' | |
class Hello extends r | |
greet: () -> | |
console.log 'hello' | |
@emit 'greeted' | |
#include <inttypes.h> | |
#include <stdio.h> // for size_t | |
class Outputter; | |
class Printable { public: | |
virtual void printTo(Outputter &stream) const = 0; | |
}; | |
class Outputter { public: |
#ifndef __SWITCHS_H__ | |
#define __SWITCHS_H__ | |
#include <string.h> | |
#include <regex.h> | |
#include <stdbool.h> | |
/** Begin a switch for the string x */ | |
#define switchs(x) \ | |
{ char *__sw = (x); bool __done = false; bool __cont = false; \ |
Employs the inline sibling trick to achieve vertical centering. Updated to make use of trig to auto-calculate values.
Forked from Oliver Turner's Pen Isometric projection using skew.
make flash | |
xtensa-lx106-elf-g++ -g -save-temps -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include/espressif -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/extra_include -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include/lwip -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include/lwip/lwip -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include/lwip/ipv4 -I /ESPWebFramework/SDK/esp_iot_rtos_sdk-master/include/lwip/ipv6 -I /ESPWebFramework/SDK/xtensa-lx106-elf/xtensa-lx106-elf/include -c src/user_main.cpp -o user_main.o | |
xtensa-lx106-elf-g++ -g -save-temps -Os -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH -fno-exceptions -fno-rtti -fno-threadsafe-statics |
#include <stdio.h> | |
#include <locale.h> | |
int main() { | |
stdout = freopen("/private/tmp/uni.c", "w", stderr); | |
fprintf(stderr, "// clang valid idntifier test\n\n"); | |
setlocale(LC_ALL, ""); | |
for (int i = 0; i < 0xffff; i++) fprintf(stderr,"#define %lc\tU%x\n", i, i); |
// clang valid idntifier test | |
#define U0 | |
#define U1 | |
#define U2 | |
#define U3 | |
#define U4 | |
#define U5 | |
#define U6 | |
#define U7 |