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
;;_ | |
;; __ _,****** | |
;; ,-----, _ _,** | |
;; | Mu! | _ ____,**** | |
;; ;-----; _ | |
;; \ ^__^ | |
;; \ (^^)\_______ | |
;; ^-(..)\ )\/\/^_^ | |
;; ||----w | | |
;; __.-’’*-,.,____||_____||___,_.- |
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
[wifi-security] | |
key-mgmt=wpa-eap | |
[connection] | |
id=PLACE_NETWORK_ID_HERE | |
uuid=PLACE_UUID_HERE | |
type=wifi | |
[ipv6] | |
method=auto |
This file has been truncated, but you can view the full file.
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(e) { | |
function t(a) { | |
if (n[a]) return n[a].exports; | |
var r = n[a] = { | |
i: a, | |
l: !1, | |
exports: {} | |
}; | |
return e[a].call(r.exports, r, r.exports, t), r.l = !0, r.exports | |
} |
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
void reverse_bit() | |
{ | |
unsigned int v; // input bits to be reversed | |
unsigned int r = v; // r will be reversed bits of v; first get LSB of v | |
int s = sizeof(v) * CHAR_BIT - 1; // extra shift needed at end | |
for (v >>= 1; v; v >>= 1) | |
{ | |
r <<= 1; |
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
from selenium import webdriver | |
import time | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
driver = webdriver.Firefox() | |
driver.get("http://github.com/login") | |
username = driver.find_element_by_id("login_field") | |
password = driver.find_element_by_id("password") |
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
def crible_erastostene(n): | |
crible = [True] * n | |
crible[:2] = [False, False] # 0 et 1 ne sont pas premiers | |
premiers = [] | |
for prime, is_prime in enumerate(crible): | |
if not is_prime: | |
continue | |
premiers.append(prime) | |
for not_prime in range(prime*prime, n, prime): | |
crible[not_prime] = False |
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
package io.trosa | |
import net.dean.jraw.http.OkHttpNetworkAdapter | |
import net.dean.jraw.http.UserAgent | |
import net.dean.jraw.models.Sorting | |
import net.dean.jraw.oauth.Credentials | |
import net.dean.jraw.oauth.OAuthHelper | |
import net.dean.jraw.pagination.Paginator | |
object AppEntryPoint { |
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
diff --git a/qtwebview/src/webview/qwebview_darwin.mm b/qtwebview/src/webview/qwebview_darwin.mm | |
index ff9dc4d..824abef 100644 | |
--- a/qtwebview/src/webview/qwebview_darwin.mm | |
+++ b/qtwebview/src/webview/qwebview_darwin.mm | |
@@ -253,14 +253,19 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N | |
{ | |
if (url.isValid()) { | |
requestFrameCount = 0; | |
- if (!url.isLocalFile()) { | |
- [wkWebView loadRequest:[NSURLRequest requestWithURL:url.toNSURL()]]; |
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
static void | |
_revwstr_(char *str, int first) | |
{ | |
int start; | |
int i = 0; | |
if (str[i]) { | |
while (str[i] && (str[i] == ' ' || str[i] == '\t')) | |
i++; | |
if (!str[i]) | |
return ; |
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
package io.trosa.examregister | |
/* | |
* (c) iomonad - <[email protected]> | |
* Desc: Automated registration for 42.fr C exams. | |
* Provide drivers using: -Dwebdriver.gecko.driver=~/Downloads/geckodriver | |
* Deploy with crontab: 02 0 * * WED java -jar register.jar <user> <pass> <event> | |
* Disclaimer: Use at your own risk. | |
*/ |