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
window["netData"] = { | |
"layers": [ | |
{ | |
"0": {}, | |
"1": {}, | |
"2": {}, | |
"3": {}, | |
"4": {}, | |
"5": {}, | |
"6": {}, |
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
const XORCipher = { | |
encode(key, data) { | |
data = xor_encrypt(key, new String(data).split("")); | |
return b64_encode(data); | |
}, | |
decode(key, data) { | |
data = b64_decode(data); | |
return xor_decrypt(key, new String(data).split("")); | |
} | |
}; |
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 sha256(s) { | |
const chrsz = 8; | |
const hexcase = 0; | |
function safe_add(x, y) { | |
const lsw = (x & 0xFFFF) + (y & 0xFFFF); | |
const msw = (x >> 16) + (y >> 16) + (lsw >> 16); | |
return (msw << 16) | (lsw & 0xFFFF); | |
} | |
function S(X, n) { |
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
class DisplayJS{constructor(a){this.obj=a}var(a){const b=()=>{this.if(),this.else();const a=document.querySelectorAll("[var]");for(let b=0;b<a.length;b++){const c=a[b].getAttribute("var");a[b].innerHTML=this.obj[c]}};a?!0==a?(b(),this.live(this.obj,()=>{b()})):window.setInterval(()=>{b()},a):b()}xss(a){const b=/</g,c=/>/g,d=/'/g,e=/"/g;return a.toString().replace(b,"<").replace(c,">").replace(d,"'").replace(e,""")}xssURI(a){return encodeURI(a)}target(b=()=>{this.var()}){const c=(()=>{return document.addEventListener?(a,b,c)=>{a.addEventListener(b,c,!1)}:(a,b,c)=>{a.attachEvent(`on${b}`,c)}})(),d=this.obj;[].forEach.call(document.querySelectorAll("[target]"),(e,f,g)=>{c(g[f],"change",function(){const a=g[f].getAttribute("target");d[a]="checkbox"==this.type?this.checked:this.value,b()}),c(g[f],"keydown",function(){const a=g[f].getAttribute("target");d[a]="checkbox"==this.type?this.checked:this.value,b()}),c(g[f],"input",function(){const a=g[f].getAttribute("target");d[a]="checkbox"==this.type?this |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import sympy as sp | |
import progressbar | |
def numOfPrimesBellow(n): | |
# primeArray = [] | |
# for i in range(n): | |
# if i in sp.sieve: | |
# primeArray.append(i) |
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
// Add Display.js | |
<script src="https://unpkg.com/display.js"></script> |
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
// This will give you the distance between 2 or 3 (depends how many axis you have) points on a cartesian plane | |
// © Arthur Guiot 2017 | |
// Sqare Root algorithm based on babylonian method | |
// @param n - the number to compute the square root of | |
// @param g - the best guess so far (can omit from initial call) | |
const squareroot = (n, g) => { | |
if (!g) { | |
// Take an initial guess at the square root |
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
2 =1+1 | |
2 = 1 + (−1) * (−1) | |
2 = 1 + (e^πi)^2 | |
2 = (e^πi)^2 +(e^πi)^2 | |
2 = (eπi)^4 | |
4 root (2)=e^πi | |
4 root (2) = −1 | |
2 = −1^4 | |
2 = 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
//Create a Night version of any website | |
body { zoom: 100%; } * { background: #111111 !important; color: #ABABAB !important; } :link, :link * { color: #DBDBDC !important } :visited, :visited * { color: #5B5B5B !important } |
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
//I made a function that calculates the average color of a given image resource and returns it in "#rrggbb" format (hex): | |
function average($img) { | |
$w = imagesx($img); | |
$h = imagesy($img); | |
$r = $g = $b = 0; | |
for($y = 0; $y < $h; $y++) { | |
for($x = 0; $x < $w; $x++) { | |
$rgb = imagecolorat($img, $x, $y); | |
$r += $rgb >> 16; |
NewerOlder