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 | |
""" | |
code to replicate: | |
static int d2charsave_checksum(unsigned char const *data, unsigned int len, unsigned int offset) | |
{ | |
int checksum; | |
unsigned int i; | |
unsigned int ch; |
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
from hashlib import sha1 | |
import numpy | |
arr=numpy.zeros((256,256,4)) | |
sha1(arr) |
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
ssh-keygen -t rsa -f .ssh/id_rsa_name |
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
const gps = { | |
type: "gps", | |
long: 234, | |
lat: 344 | |
}; | |
const kmm = { | |
type: "kmm", | |
km: 34, | |
m: { |
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
{-# LANGUAGE OverloadedStrings #-} | |
import Prelude hiding (Word) | |
import Data.Maybe | |
data Stack a = Stack [a] deriving | |
(Show) | |
empty :: Stack a | |
empty = Stack [] |
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
from itertools import repeat | |
import pandas as pd | |
df = pd.DataFrame( | |
{ | |
'accountData': [ | |
[{'key': 'name' ,'value': 'jim'}, {'key': 'schlong' ,'value': '27' }], | |
[{'key': 'name' ,'value': 'cnagy'}, {'key': 'schlong' ,'value': '26' }], |
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
#!/usr/bin/env bash | |
COMMAND=$@ | |
set -x | |
command -v poetry > /dev/null || (echo missing poetry && exit 3) | |
if [[ -v ${COMMAND} ]]; then | |
poetry shell | |
else | |
bash -c ". .venv/bin/activate && $(printf ' %q' "$@")" |
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 threading | |
import time | |
import schedule | |
import json | |
import requests | |
def start_updater(): | |
def _f(): | |
while True: |
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
Lets have a Discord hangout! | |
I've added so that anyone can create a voice channel and break out into the discussions | |
you feel are interesting. See it as if it was happening at a cafe, use common sense. | |
We'll try to share screens and show of what we are working on or have got stuck on, | |
or why not discuss why you think U-Net is the only network you'll ever need for segmentation? | |
I have no clue how this is going to turn out, but I'm optimistic that we'll make it work and | |
make it a bit better foreach run. |
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 pacman -S polkit wpa_actiond | |
systemctl enable netctl-auto@wlan0.service |
NewerOlder