- retroactive: 有追溯效力的; 追加的 example: a retroactive notice
- afaik, AFAIK: as far as I know
- recap (v.) 总结
- drill down (v.) 钻取数据
- to this end (v.) to achieve the previously specified goal.
- predate (v.) 早于
- roll out (v.) 推出; 展出; introduce; to initiate or produce for the first time;
- verbiage (n.) 连篇累牍
- surface (vi.) 露出水面; 出现; 重新出现
- grinding (adj.) 刺耳的; 完全的; 难于忍受的
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct string | |
{ | |
int length; | |
char chars[]; | |
} string; | |
int main(int argc, char * argv[]) |
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
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct | |
{ | |
int x; | |
short y[3]; | |
long long z; | |
} data_t; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
/* the array name by default is a pointer to its first element, | |
* similar to test2 | |
*/ | |
void test1(int len, int x[]) | |
{ | |
int i; | |
for (i = 0; i < len; i++) |
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 | |
# Check if SBC is stable and send a notification | |
OUTSIDE_HOST="${1:-8.8.8.8}" | |
PING_COUNT=15 | |
PING_TIMEOUT=15 | |
PING_INTERVAL=0.5 | |
ASC_MBP="10.0.1.10" | |
STATUS="unknown" |
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 | |
# After disconnecting from the iPhone Hotspot, run this command | |
OLD_DEFAULT_ROUTE="10.0.1.1" | |
# Turn off WiFi | |
networksetup -setairportpower en0 off | |
# Flush all routes | |
sudo route flush |
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
class Base(object): | |
def __repr__(self): | |
try: | |
u = self.__str__() | |
except (UnicodeEncodeError, UnicodeDecodeError): | |
u = '[Bad Unicode data]' | |
repr_type = type(u) | |
return repr_type('<%s: %s>' % (self.__class__.__name__, u)) | |
def __str__(self): |
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
2016-01-28 10:41:06.926 Vim[33161:8900878] *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection is invalid | |
2016-01-28 10:41:06.932 Vim[33161:8900878] *** Terminating app due to uncaught exception 'NSInvalidReceivePortException', reason: 'connection is invalid' | |
*** First throw call stack: | |
( | |
0 CoreFoundation 0x00007fff95bddae2 __exceptionPreprocess + 178 | |
1 libobjc.A.dylib 0x00007fff8d67cf7e objc_exception_throw + 48 | |
2 CoreFoundation 0x00007fff95bdd98d +[NSException raise:format:] + 205 | |
3 Foundation 0x00007fff86883b35 -[NSConnection sendInvocation:internal:] + 239 | |
4 CoreFoundation 0x00007fff95b19412 ___forwarding___ + 514 | |
5 CoreFoundation 0x00007fff95b19188 _CF_forwarding_prep_0 + 120 |
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
cpp -dM /dev/null |
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
# If .profile already exists, execute it. | |
if [ -f "$HOME/.profile" ]; then | |
. "$HOME/.profile" | |
else | |
# Otherwise, copy .profle from /etc/skel | |
if [ -f "/etc/skel/.profile" ]; then | |
cp /etc/skel/.profile "$HOME" | |
fi | |
# Also check if .bashrc exists and otherwise copy it from /etc/skel | |
if [ ! -f "$HOME/.bashrc" ]; then |