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 numpy as np | |
def sigmoid(x, derivative=False): | |
return x*(1-x) if derivative else 1/(1+np.exp(-x)) | |
class NeuralNetwork: | |
def __init__(self, x, y): | |
self.input = x | |
self.weights1 = np.random.rand(self.input.shape[1],4) |
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
async function printPDF(html){ | |
const browser = await puppeteer.launch({headless: true, args: ["--no-sandbox=true"]}); | |
const page = await browser.newPage(); | |
await page.setContent(html); | |
const pdf = await page.pdf({ format: 'A4' }); | |
await browser.close(); | |
return pdf | |
} |
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
###############Shell script for migrating all repo’s reading from file################ | |
#!/bin/bash | |
name_of_github_org=yourorg | |
while IFS="" read -r p || [ -n "$p" ] | |
do | |
git clone --bare $p; | |
repo=`echo "$p" | cut -d "/" -f 2` |