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
# Solves: "command not found: javadoc" | |
sudo pacman -S j{re,dk}8-openjdk | |
# Had some issues with java et al. after I changed from java7 to java8, not everything was relinked and placed properly, re-installing it solved it. |
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 __future__ import print_function, division | |
import random | |
import gym | |
import numpy as np | |
from collections import deque | |
from keras.models import Sequential | |
from keras.layers import Dense | |
from keras.optimizers import Adam |
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 __future__ import division, print_function | |
import numpy as np | |
import cv2 | |
COLOR = 1 | |
GRAYSCALE = 0 | |
UNCHANGED = -1 | |
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
void setup() { | |
Serial.begin(115200); | |
} | |
// 0=> 0 | |
// 47=> 100 | |
// 94=> 200 | |
// 141=> 300 (still following 47 * n) | |
// 192=> 400 (1 mark off) | |
// 246=> 500 (2 mark off) |
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
void setup() { | |
Serial.begin(115200); | |
} | |
// 0=> 0 | |
// 47=> 100 | |
// 94=> 200 | |
// 141=> 300 (still following 47 * n) | |
// 192=> 400 (1 mark off) |
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 __future__ import division, print_function | |
import cv2 | |
id_ = lambda x: x | |
def live_transform(transformation=id_): | |
cap = cv2.VideoCapture(0) | |
while True: | |
ret, img = cap.read() |
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 time import time | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn.cluster import KMeans | |
from sklearn.datasets import load_digits | |
from sklearn.decomposition import PCA | |
from sklearn.preprocessing import scale | |
digits = load_digits() |
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 Network.HaskellNet.IMAP.SSL | |
import Network.HaskellNet.SMTP.SSL as SMTP | |
import Network.HaskellNet.Auth (AuthType(LOGIN)) | |
import qualified Data.ByteString.Char8 as B | |
username = "[email protected]" |
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 [email protected] |
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 keras import backend as K | |
K.set_image_dim_ordering('th') |