View pinyin.dict.yaml
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
# Rime dictionary | |
# encoding: utf-8 | |
# | |
# 擴展拼音 Kuò'zhǎn Pīn'yīn | |
--- | |
name: pinyin | |
version: "2016.6.25" | |
sort: original | |
use_preset_vocabulary: false |
View gist:44a22515d2b0621a145d
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
--- srclib/stdio.in.h.orig 2011-08-07 16:42:06.000000000 +0300 | |
+++ srclib/stdio.in.h 2013-01-10 15:53:03.000000000 +0200 | |
@@ -695,7 +695,9 @@ | |
/* It is very rare that the developer ever has full control of stdin, | |
so any use of gets warrants an unconditional warning. Assume it is | |
always declared, since it is required by C89. */ | |
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) | |
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
+#endif |
View mycamera
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 bash | |
declare -a arr=( | |
/Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera | |
/Library/CoreMediaIO/Plug-Ins/FCP-DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera | |
/System/Library/Frameworks/CoreMediaIO.framework/Versions/Current/Resources/VDC.plugin/Contents/MacOS/VDC) | |
trigger () { | |
for i in ${arr[@]}; do | |
sudo chmod $1 $i |
View repl-client.js
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
var net = require('net'); | |
var socket = net.connect(2333); | |
process.stdin.pipe(socket); | |
/// For backwards compatibility with Node program older than v0.10, | |
/// readable streams switch into "flowing mode" when a 'data' event handler | |
/// is added, or when the pause() or resume() methods are called. | |
process.stdin.on('data', function (buffer) { | |
if (buffer.length === 1 && buffer[0] === 0x04) { // EOT |
View dabblet.css
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
/** | |
* flower | |
*/ | |
div { | |
position: absolute; | |
top: 100px; | |
left: 100px; | |
} | |
div:nth-child(odd) { |
View dabblet.css
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
/** | |
* Arc | |
*/ | |
div { | |
position: relative; | |
transition: top 1s ease-in, left 1s ease-out; | |
} | |
body:hover div { | |
top: 100px; |
View dabblet.css
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
/** | |
* Move in a circle without wrapper elements | |
* Idea by Aryeh Gregor, simplified by Lea Verou | |
*/ | |
@keyframes rot { | |
from { | |
transform: rotate(0deg) | |
translate(-150px) | |
rotate(0deg); |
View dabblet.css
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
/** | |
* Move in a circle without wrapper elements | |
* Idea by Aryeh Gregor, simplified by Lea Verou | |
*/ | |
@keyframes rot { | |
from { | |
transform: rotate(0deg) | |
translate(-150px) | |
rotate(0deg); |
View dabblet.css
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
/** | |
* Typing animation with pure CSS. | |
* Works best in browsers supporting the ch unit. | |
*/ | |
@keyframes typing { from { width: 0; } } | |
@keyframes blink-caret { 50% { border-color: transparent; } } | |
h1 { | |
font: bold 200% Consolas, Monaco, monospace; |