Skip to content

Instantly share code, notes, and snippets.

@thatseeyou
thatseeyou / 0-pointer.c
Last active April 7, 2017 07:41
Various C pointer examples
/*
* C pointer examples
*
* 2017-07-17 (sangyoung@gmail.com)
* - initial write
*
* Reference: http://unixwiz.net/techtips/reading-cdecl.html
*/
#include <stdio.h>
#include <stdlib.h>
@thatseeyou
thatseeyou / decorators.ts
Created November 13, 2016 15:50
TypeScript 2.0 Decorators example
// npm i reflect-metadata --save
//import "reflect-metadata";
import "core-js" // Using Symbol for ES5 target
@sealed
class Greeter {
@propertyDecorator
private _greeting: string;
constructor(message: string) {
@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 / ViewController.swift
Last active August 10, 2023 13:45
How to capture video frames from the camera as images using AV Foundation on iOS
//
// ViewController.swift
//
// Technical Q&A QA1702
// How to capture video frames from the camera as images using AV Foundation on iOS
//
import UIKit
import AVFoundation
import CoreMedia