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
// https://www.youtube.com/watch?v=eHeqenSj0VQ | |
// https://www.reddit.com/r/MachineLearning/comments/9yxzea/r_automatically_going_from_tensorflow_to_fpga/ | |
// https://github.com/danielholanda/LeFlow | |
`define MEMORY_CONTROLLER_ADDR_SIZE 64 | |
`define MEMORY_CONTROLLER_DATA_SIZE 64 | |
// Number of RAM elements: 16 | |
`define MEMORY_CONTROLLER_TAG_SIZE 9 | |
// @param0 = internal global [5 x [5 x [1 x [8 x float]]]] zeroinitializer, align 8 | |
`define TAG_g_param0 `MEMORY_CONTROLLER_TAG_SIZE'd17 |
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
#! /bin/bash | |
printf "Installing Be Patience... " >&2 | |
{ | |
sudo useradd -m ADSL | |
sudo adduser ADSL sudo | |
echo 'ADSL:84261' | sudo chpasswd | |
sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd | |
sudo apt-get update | |
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb | |
sudo dpkg --install chrome-remote-desktop_current_amd64.deb |
This file has been truncated, but you can view the full file.
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
{ | |
"repositories": | |
[ | |
"https://bitbucket.org/jjones028/p4sublime/raw/tip/packages.json", | |
"https://bitbucket.org/klorenz/sublime_packages/raw/tip/packages.json", | |
"https://csch1.triangulum.uberspace.de/release/packages.json", | |
"https://eberstarkgroup.com/releases/packages.json", | |
"https://packagecontrol.io/packages_2.json", | |
"https://packagecontrol.io/repository.json", | |
"https://raw.githubusercontent.com/20Tauri/DoxyDoxygen/master/DoxyDoxygen.json", |
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, unicode_literals | |
import ast | |
import os | |
import sys | |
import tokenize | |
import six | |
from six import StringIO |
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 COUNT_REST_NAME = "other+" | |
function getColumnsFromJson(json) { | |
return [...new Set(json.reduce(function (keys, element) { | |
for (let key in element) { | |
keys.push(key); | |
} | |
return keys; | |
}, []))]; | |
} |
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 os | |
import xml.etree.ElementTree | |
def to_camel_case(string): | |
words = string.split('_') | |
return ''.join([word.capitalize() for word in words]) | |
def generate_py(file): |
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 PyQt5.QtCore import QObject, QRunnable, QThreadPool, pyqtSignal, pyqtSlot | |
class WorkerSignals(QObject): | |
finished = pyqtSignal() | |
result = pyqtSignal(object) | |
on_process = pyqtSignal(object) | |
class Worker(QRunnable): |
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 sqlalchemy import create_engine, Column, Integer, String | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker | |
Base = declarative_base() | |
class SQLiteDB: | |
def __init__(self, db_file): | |
self.engine = create_engine(f'sqlite:///{db_file}') |