Skip to content

Instantly share code, notes, and snippets.

@thatseeyou
thatseeyou / entries.xml
Created December 1, 2016 16:25
XSLT: XML to space delimited file
<?xml version='1.0' encoding='UTF-8'?>
<!-- filtered response of Picasa Web Albums Data API -->
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007'>
<entry>
<id>https://picasaweb.google.com/data/entry/user/117547036153868951227/albumid/6358821083271905537</id>
<published>2016-11-30T17:53:24.000Z</published>
<updated>2016-11-30T17:53:25.924Z</updated>
<link href='https://picasaweb.google.com/data/entry/api/user/117547036153868951227/albumid/6358821083271905537'/>
<gphoto:id>6358821083271905537</gphoto:id>
<gphoto:timestamp>1480528404000</gphoto:timestamp>
@thatseeyou
thatseeyou / Makefile
Created December 15, 2016 14:56
JXA용 Makefile: src 디렉토리의 소스를 build 디렉토리로 컴파일
COMPILE.scpt = osacompile -l JavaScript
SRCDIR = src
DSTDIR = build
SRCS = $(wildcard $(SRCDIR)/*.scpt)
DSTS = $(patsubst $(SRCDIR)/%,$(DSTDIR)/%,$(SRCS))
# pseudo target
CLEAN_DSTS = $(patsubst $(DSTDIR)/%,clean/%,$(wildcard $(DSTDIR)/*.scpt))
@thatseeyou
thatseeyou / dom2json.js
Created March 22, 2017 04:32
웹 페이지의 특정 정보를 추출하여 json 형태로 만들기
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Cmd-R),
* 2. Inspect to bring up an Object Inspector on the result (Cmd-I), or,
* 3. Display to insert the result in a comment after the selection. (Cmd-L)
*/
// run at http://www.zdnet.co.kr
@thatseeyou
thatseeyou / 0-pointer.c
Last active April 7, 2017 07:41
Various C pointer examples
/*
* C pointer examples
*
* 2017-07-17 ([email protected])
* - initial write
*
* Reference: http://unixwiz.net/techtips/reading-cdecl.html
*/
#include <stdio.h>
#include <stdlib.h>