jq is useful to slice, filter, map and transform structured json data.
brew install jq
import os | |
import pickle | |
import warnings | |
import numpy as np | |
import pandas as pd | |
from sklearn.model_selection import train_test_split | |
from tensorflow.keras.callbacks import EarlyStopping | |
from tensorflow.keras.layers import Dense | |
from tensorflow.keras.layers import Dropout |
#!/usr/bin/env python3 | |
# modified version of this snippet | |
# https://gist.github.com/TheRook/95f2b872bdc81bac2371 | |
import dns.resolver | |
import dns.name | |
from urllib.parse import urlparse | |
function importAll(r) { | |
return r.keys().map(r); | |
} | |
const images = importAll(require.context('../assets/logos', false, /\.(png|jpe?g|svg)$/)); | |
const companies = images.map(item => { | |
return { | |
logo: item.default, | |
slug: 'company-page', |
function magicMethods (clazz) { | |
// A toggle switch for the __isset method | |
// Needed to control "prop in instance" inside of getters | |
let issetEnabled = true | |
const classHandler = Object.create(null) | |
// Trap for class instantiation | |
classHandler.construct = (target, args, receiver) => { | |
// Wrapped class instance |
diff --git a/src/download/chunk_selector.cc b/src/download/chunk_selector.cc | |
index 850fec0f..248a29f9 100644 | |
--- a/src/download/chunk_selector.cc | |
+++ b/src/download/chunk_selector.cc | |
@@ -82,7 +82,7 @@ ChunkSelector::update_priorities() { | |
m_sharedQueue.clear(); | |
if (m_position == invalid_chunk) | |
- m_position = random() % size(); | |
+ m_position = 0; |
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Controller; | |
use App\Models\Main\Admin; | |
use Facades\PragmaRX\Google2FA\Google2FA; | |
use Illuminate\Http\Request; | |
class TokenController extends Controller |
<?php | |
$domain = $_GET['domain']; | |
$w = new DomainAge(); | |
echo $w->age($domain); | |
class DomainAge | |
{ | |
private $WHOIS_SERVERS = array( | |
"com" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), | |
"net" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), |
Updated: Just use qutebrowser (and disable javascript). The web is done for.