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 util = require('util'); | |
var oauth = new (require('oauth').OAuth)( | |
'https://api.twitter.com/oauth/request_token', | |
'https://api.twitter.com/oauth/access_token', | |
'xxxxxxxxxx', // consumer key | |
'xxxxxxxxxx', // consumer secret | |
'1.0', | |
null, // callback URL | |
'HMAC-SHA1' | |
); |
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
D:\ffmpeg-4.0.2-win64-static\bin\ffmpeg.exe -i D:\Video\Export\616.mov -c:v hevc_nvenc -preset slow - | |
b:v 60M -c:a copy -pix_fmt yuv420p output.mkv |
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
test |
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
@font-face { | |
font-family: "sans-serif"; | |
src: local("Noto Sans CJK JP"); | |
} | |
@font-face { | |
font-family: "serif"; | |
src: local("Noto Sans CJK JP"); | |
} | |
@font-face { | |
font-family: "MS Pゴシック"; |
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
# coding: utf-8 | |
import appex, clipboard, urllib2, re, cookielib | |
def main(): | |
if not appex.is_running_extension(): | |
print 'This script is intended to be run from the sharing extension.' | |
return | |
url = appex.get_url() | |
if not url: | |
print 'No URL found.' |
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
export PATH="$PATH":`pwd`/depot_tools |
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/local/bin/rsync -avpP src dist |
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
% sudo /sbin/kextload -v /Applications/KeyRemap4MacBook.app/Contents/Library/KeyRemap4MacBook.kext |
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
on getFront() | |
tell application "System Events" | |
set thisApp to name of first process whose frontmost is true | |
end tell | |
end getFront | |
on check() | |
if getFront() is not "Safari" then | |
try | |
do shell script "killall -STOP WebProcess" |
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 sys = require('util'); | |
var colors = require('colors'); | |
sys.puts('green'.green); | |
sys.puts('yellow'.yellow); | |
sys.puts('cyan'.cyan); | |
sys.puts('white'.white); | |
sys.puts('magenta'.magenta); | |
sys.puts('red'.red); | |
sys.puts('grey'.grey); |
NewerOlder