Skip to content

Instantly share code, notes, and snippets.

View 1000ship's full-sized avatar
💭
Chill 😏

Dante Chun 1000ship

💭
Chill 😏
View GitHub Profile
@codebrainz
codebrainz / c99.l
Created June 14, 2012 23:49
C99 Lex/Flex & YACC/Bison Grammars
D [0-9]
L [a-zA-Z_]
H [a-fA-F0-9]
E ([Ee][+-]?{D}+)
P ([Pp][+-]?{D}+)
FS (f|F|l|L)
IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U))
%{
#include <stdio.h>
@composite
composite / trans-search.html
Created July 22, 2015 04:47
다음 검색 - 운송장조회 HTML 및 스크립트
<!-- 택배조회Coll -->
<style type="text/css">
#deliveryColl .collTitle {margin-bottom:16px;}
#deliveryColl .select_box {border:1px solid #7f9db7;width:135px;height:20px;font-size:12px;}
#deliveryColl .inp_txt {width:140px;height:14px;padding:4px 0 3px 2px;border-top:1px solid #ababab;border-left:1px solid #ababab;border-bottom:1px solid #ccc;border-right:1px solid #ccc;font-size:12px;line-height:14px;}
#deliveryColl .wrap_inquiry {padding-bottom:15px;border:1px solid #e8e8e8;background:#f9f9f9;}
#deliveryColl .wrap_inquiry .box_search {width:701px;padding:13px 0 0 15px;border-top:1px solid #fcfcfc;border-left:1px solid #fcfcfc;}
#deliveryColl .wrap_inquiry .info_delivery {float:left;}
#deliveryColl .wrap_inquiry .info_delivery .tit {float:left;padding-right:4px;font-size:12px;font-weight:bold;line-height:22px;color:#000;clear:both;}
#deliveryColl .wrap_inquiry .info_delivery .cont {float:left;width:154px;}
@ingramchen
ingramchen / gist:e2af352bf8b40bb88890fba4f47eccd0
Created April 5, 2016 12:58
ffmpeg convert gif to mp4, for best cross browser compatibility
### Full command line options
```
ffmpeg -f gif -i FOO.gif -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' BAR.mp4
```
### Notie
* output mp4 is encoded with h264, support Firefox/Chrome/Safari in Windows, Mac OSX, Android, and iOS.
@npearce
npearce / install-docker.md
Last active April 26, 2025 04:27
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@wplong11
wplong11 / NativeMethodInvoker.ts
Created August 30, 2022 12:27
NativeMethodInvoker.ts
type NativeMethodRequest<TParams> = {
invocationId: string;
methodName: string;
params?: TParams;
};
type NativeMethodResponse = {
invocationId: string;
callbackType: 'resolve' | 'reject';
value?: any;