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/bash | |
curl telnet://127.0.0.1:11211 <<EOF | |
flush_all | |
quit | |
EOF |
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
import obspython as obs | |
import re | |
import win32gui | |
import win32api | |
# Global variables holding the values of data settings / properties | |
update_frequency = 50 # Update frequency in msec | |
# Global animation activity flag | |
is_active = True |
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/bash | |
#### | |
# Split MySQL dump SQL file into one file per table | |
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump | |
#### | |
if [ $# -lt 1 ] ; then | |
echo "USAGE $0 DUMP_FILE [TABLE]" | |
exit |
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
(function test() { | |
let e = document.getElementsByClassName('reply'); | |
let i = 0; | |
e.forEach(function(e2) { | |
let author = '', text = ''; | |
let authorE = e2.getElementsByClassName('author'); | |
if (authorE.length > 0) { | |
author = authorE[0].innerText; | |
} |
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
// ==UserScript== | |
// @name waifu | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.thiswaifudoesnotexist.net/ | |
// @grant none | |
// @run-at document-end | |
// @require http://code.jquery.com/jquery-3.4.1.min.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
// ==UserScript== | |
// @name twitch suggested friends hide | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.twitch.tv/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== |
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
.chat-line__message, .tw-root--theme-dark .top-nav__external-link { | |
color: #d4d4d4; | |
} | |
.drops-list__count { | |
background-color: #5a8045; | |
} | |
.player { | |
background-color: #1f1f1f; |
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/bash | |
##/* | |
## * @Author: AllenYL | |
## * @Date: 2017-11-08 11:37:31 | |
## * @Last Modified by: allen7575@gmail.com | |
## * @Last Modified time: 2017-11-08 11:37:31 | |
## */ | |
# |
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 | |
/** | |
* Checks that float value has fractional part | |
* | |
* @param float $value | |
* | |
* @return bool | |
*/ | |
function hasFractionalPart($value) | |
{ |
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
public function getMap() | |
{ | |
return [ | |
self::FIELD__ID => [ | |
'getter' => 'getId', | |
'setter' => 'setId', | |
'role' => [ | |
self::ROLE__PRIMARY_KEY => true, | |
self::ROLE__GENERATE_KEY => true, | |
], |
NewerOlder