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
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:icalendar-ruby | |
CALSCALE:GREGORIAN | |
BEGIN:VTIMEZONE | |
TZID:Asia/Tokyo | |
BEGIN:STANDARD | |
DTSTART:19700101T000000 | |
TZOFFSETFROM:+0900 | |
TZOFFSETTO:+0900 |
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
default: test.html test-wasm.html | |
test-asm.html: test.o lib1.js | |
emcc -g -s MAIN_MODULE=1 -s RUNTIME_LINKED_LIBS="['lib1.js']" -o $@ test.o | |
test-wasm.html: test.o lib1.wasm | |
emcc -g -s MAIN_MODULE=1 -s RUNTIME_LINKED_LIBS="['lib1.wasm']" -s BINARYEN=1 -o $@ test.o | |
.c.o: | |
emcc -g -O0 -c -o $@ $< |
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
all: main.html sub.js | |
main.html: main.c | |
emcc -s MAIN_MODULE=1 -o $@ $< --pre-js pre.js | |
sub.js: sub.c | |
emcc -s SIDE_MODULE=1 -o $@ $< -s "EXPORTED_FUNCTIONS=['_global_var']"; | |
run: | |
emrun main.html |
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
<!doctype html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Emscripten-Generated Code</title> | |
<style> | |
body { | |
font-family: arial; | |
margin: 0; |
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
#include <stdio.h> | |
int main(int argc, char* argv[]) | |
{ | |
puts("Hello world!"); | |
} |
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 | |
convert -gravity center -size 1024x64 -background white -fill blue -pointsize 64 label:2017/2/17 20170217.jpeg | |
exiftool "-CreateDate=2017/02/17 00:00:00" 20170217.jpeg | |
convert -gravity center -size 1024x64 -background white -fill blue -pointsize 64 label:2017/2/18 20170218.jpeg | |
exiftool "-CreateDate=2017/02/18 00:00:00" 20170218.jpeg | |
convert -gravity center -size 1024x64 -background white -fill blue -pointsize 64 label:2017/2/19 20170219.jpeg | |
exiftool "-CreateDate=2017/02/19 00:00:00" 20170219.jpeg |
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
file = File.binread(ARGV[0]) | |
(magic, version, reserved, offset, num_entries, num_buckets, maxlen) = header = file.unpack("Vv2V4") | |
#p header | |
buckets_bytes = file[24,num_buckets*3*4].unpack("V*") | |
strings = file[24+num_buckets*3*4..-1] | |
#p buckets_bytes | |
#p strings | |
def hashkey(str) |
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 ruby | |
require 'uri' | |
require 'webrick' | |
require 'webrick/httpproxy' | |
KEY = "Access-Control-Allow-Origin" | |
handler = Proc.new() {|req,res| | |
unless res.header.has_key? KEY | |
res.header[KEY] = "*" |
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 WrapArray(arr) { | |
var ADDR = 25915336; | |
return new Proxy(arr, { | |
get: function(target, name) { | |
if(name == ((ADDR / arr.BYTES_PER_ELEMENT)|0)) { | |
console.log("Read access detected", new Error().stack); | |
} | |
if(typeof target[name] === "function") { | |
return function() { |
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
begin remote | |
name light | |
bits 40 | |
flags SPACE_ENC|CONST_LENGTH | |
eps 30 | |
aeps 100 | |
header 3492 1727 | |
one 445 1296 |
NewerOlder