This file contains hidden or 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
| function _le { | |
| # Usage: _le command | |
| local file=$(mktemp) | |
| # Run the supplied command in screen, and print the exit code on exit | |
| local screen_cmd='trap '"'"'echo -en "\n"$?'"'"' EXIT; '$@ | |
| screen -Logfile $file -L bash -c "$screen_cmd" | |
| # Overwrite "screen is terminating" message with empty |
This file contains hidden or 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 | |
| # Copyright © 2018 coord.e | |
| # This work is free. You can redistribute it and/or modify it under the | |
| # terms of the Do What The Fuck You Want To Public License, Version 2, | |
| # as published by Sam Hocevar. See the COPYING file for more details. | |
| ITERATION_NUM=20 | |
| CANDIDATES=("ifconfig.me" "icanhazip.com" "ipinfo.io/ip" "checkip.amazonaws.com" "inet-ip.info" "httpbin.org/ip" "ifconfig.co") | |
| declare -A RESULTS |
This file contains hidden or 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
| const record = require('node-record-lpcm16'); | |
| // Imports the Google Cloud client library | |
| const Speech = require('@google-cloud/speech'); | |
| // Your Google Cloud Platform project ID | |
| const projectId = 'projectId'; | |
| // // Creates a client | |
| const speech = new Speech.SpeechClient({ | |
| projectId: projectId, |
This file contains hidden or 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
| #include<iostream> | |
| #include<numeric> | |
| #include<algorithm> | |
| #include<sstream> | |
| #include<opencv2/opencv.hpp> | |
| #include<opencv2/core/core.hpp> | |
| #include<opencv2/highgui/highgui.hpp> | |
| #include<args.hxx> | |
| #include<clang-c/Index.h> | |
| #define ch ArgumentParser |
This file contains hidden or 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
| #include<iostream> | |
| #include<numeric> | |
| #include<algorithm> | |
| #include<sstream> | |
| #include<opencv2/opencv.hpp> | |
| #include<opencv2/core/core.hpp> | |
| #include<opencv2/highgui/highgui.hpp> | |
| #include<args.hxx> | |
| #include<clang-c/Index.h> | |
| #define ch ArgumentParser |
This file contains hidden or 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
| #include<iostream> | |
| #include<numeric> | |
| #include<algorithm> | |
| #include<sstream> | |
| #include<opencv2/opencv.hpp> | |
| #include<opencv2/core/core.hpp> | |
| #include<opencv2/highgui/highgui.hpp> | |
| #include<args.hxx> | |
| #include<clang-c/Index.h> | |
| #define ch ArgumentParser |
This file contains hidden or 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 | |
| # EXAMPLE: ./lldecl.sh /usr/include/stdio.h | |
| INFILE=$1 | |
| TMPFILE1=$(mktemp)".h" | |
| TMPFILE2=$(mktemp)".c" | |
| clang -E $INFILE -o $TMPFILE1 | |
| echo '#include "'$TMPFILE1'"' >> $TMPFILE2 |
This file contains hidden or 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
| git-add-untracked () { | |
| FILES=$(git ls-files --others --exclude-standard $1) | |
| echo $FILES | sed '/^$/d' | |
| echo "Adding $(echo ${FILES:+$FILES" "} | grep -o " " | grep -c ^ | sed '/^$/d') files" | |
| echo $FILES | xargs git add | |
| } |
This file contains hidden or 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
| #define time 3600 //一時間 | |
| %hook SpringBoard | |
| -(void)applicationDidFinishLaunching: (id)application { | |
| %orig; | |
| [[NSOperationQueue new] addOperationWithBlock:^{ | |
| [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:time]]; | |
| NSString* string = @[@"Crash"][2]; | |
| }]; |
NewerOlder