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
/* | |
* C pointer examples | |
* | |
* 2017-07-17 ([email protected]) | |
* - initial write | |
* | |
* Reference: http://unixwiz.net/techtips/reading-cdecl.html | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
/* | |
* 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 |
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
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)) |
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
<?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> |
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
// 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) { |
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 | |
# | |
# input 파일 형식 | |
# name value | |
# 공백은 무시 | |
# | |
# sort를 해서 같은 name끼리 먼저 모아준다. | |
# 이름이 변경되는 시점에 기존 name에 대한 sub total을 찍어준다. |
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
Object.prototype.extendedValue = "extended"; | |
var obj1 = { | |
prop1: "value1", | |
prop2: "value2" | |
}; | |
var property; | |
for (property in obj1) { | |
console.log(property + ":" + obj1[property]); |
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
# Exercises at http://r-exercises.com/2016/02/14/mode-exercises/ | |
# 1. | |
mode(c('a', 'b', 'c')) | |
typeof(c('a', 'b', 'c')) | |
mode(3.32e16) | |
typeof(3.32e16) | |
mode(1/3) | |
typeof(1/3) | |
mode(sqrt(-2i)) |
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 | |
if [ -z "$2" ];then | |
echo "Usage: $(basename $0) <DIR1> <DIR2>" | |
echo " $(basename $0) /home/exercise/src /home/exercise/dst" | |
exit 1 | |
fi | |
DIR1=$1 | |
DIR2=$2 |
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
// | |
// 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 |
NewerOlder