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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCB1jYAAAAAIAAc/INeUAAAAASUVORK5CYII= |
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 list = [ | |
// [2130706433, 4278190080], | |
// [167772160, 4278190080], | |
// [2886729728, 4293918720], | |
// [3232235520, 4294901760], | |
[16777216, 4294901760], | |
[16842752, 4294901760], | |
[16908288, 4294901760], | |
[16973824, 4294901760], | |
[17039360, 4294901760], |
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
/* | |
* keyboard_leds.c | |
* Manipulate keyboard LEDs (capslock and numlock) programmatically. | |
* | |
* gcc -Wall -o keyboard_leds keyboard_leds.c -framework IOKit | |
* -framework CoreFoundation | |
* | |
* Copyright (c) 2007,2008 Amit Singh. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
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
张三 | |
李四 | |
王五 | |
张三 | |
张三 |
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
A .- | |
B -. . . | |
C -. -. | |
D -. . | |
E . | |
F . .-. | |
G --. | |
H . . . . | |
I . . | |
J .--- |
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
find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" |
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
#!/bin/sh | |
# Flora Pid by LeaskH.com | |
# Main logic | |
aPs="`ps -ef | grep "$*" | grep -v "grep $*" | grep -v "$0 $*"`" | |
pid="`echo "$aPs" | grep -v "pid" | head -1 | awk '{print $2}'`" | |
if [ "$pid" ]; then | |
echo $pid | |
exit 0 | |
fi |
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
#!/bin/sh | |
# Flora Smart Kill by LeaskH.com | |
# Main logic | |
aPs="`ps -ef | grep "$*" | grep -v "grep $*" | grep -v "$0 $*"`" | |
pid="`echo "$aPs" | grep -v "sk" | head -1 | awk '{print $2}'`" | |
if [ "$pid" ]; then | |
kill $pid # 2> /dev/null | |
echo $pid | |
exit 0 |
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
#!/bin/sh | |
# Flora Note by LeaskH.com | |
list() { | |
ls $note_path | |
} | |
edit() { | |
"$editor" $note_path | |
} |
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
<?php | |
# Tracking time elapsed for php program in millisecond | |
# by @leaskh | |
class runtime { | |
var $StartTime = 0; | |
var $StopTime = 0; | |
function get_microtime() { |