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
# models.py | |
from dataclasses import dataclass # Built-in in Python 3.6 | |
@dataclass | |
class Bar: | |
x: int | |
y: float | |
@dataclass |
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 triggerReload() { | |
let loadMoreButton = document.querySelector('button.load-more-button'); | |
if (!loadMoreButton) { | |
console.error('Unable to find the "load more" button.'); | |
return false; | |
} | |
console.log('Trigger the reload.'); |
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
pip install cython | |
apk add musl-dev | |
#apk add linux-headers |
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
# https://www.thomas-krenn.com/en/wiki/Linux_I/O_Performance_Tests_using_dd | |
dd if=/dev/zero of=`pwd`/testfile bs=1G count=1 oflag=direct && rm `pwd`/testfile |
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
http://www.telegraph.co.uk/technology/apple/11988396/Jony-Ive-interview-The-story-of-the-Apple-Pencil.html |
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 | |
du --max-depth=1 2> /dev/null | sort -n -r | head -n20 |
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
diff --git a/re/re.go b/re/re.go | |
index d438921..a2e8f39 100644 | |
--- a/re/re.go | |
+++ b/re/re.go | |
@@ -1,46 +1,46 @@ | |
// Package re provides a simplified Regular Expression class | |
package re | |
-import "fmt" // for debugging | |
+//import "fmt" // for debugging |
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
./configure --with-openssl --enable-mbstring --enable-phar --with-mysqli --with-pdo-mysql \ | |
&& make \ | |
&& make install |
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
Domain Name: TV-PLAYER.US | |
Domain ID: D45653297-US | |
Sponsoring Registrar: eNom, Inc. | |
Sponsoring Registrar IANA ID: 48 | |
Registrar URL (registration services): whois.enom.com | |
Domain Status: clientTransferProhibited | |
Registrant ID: D8D3528623A092F7 | |
Registrant Name: shi jian | |
Registrant Address1: Fujian |
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 pip install kotoba | |
Downloading/unpacking kotoba | |
You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files. | |
You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files. | |
Downloading kotoba-3.0.1.tar.gz | |
Running setup.py egg_info for package kotoba | |
Installing collected packages: kotoba | |
Running setup.py install for kotoba | |
NewerOlder