Skip to content

Instantly share code, notes, and snippets.

Avatar

Gil Rosenthal gilrosenthal

View GitHub Profile
View turn
tls-listening-port=5349
lt-cred-mech
fingerprint
stale-nonce
use-auth-secret
static-auth-secret=$turnsecret
server-name=riot.gilrosenthal.com
realm=riot.gilrosenthal.com
cert=/etc/letsencrypt/live/riot.gilrosenthal.com/fullchain.pem
pkey=/etc/letsencrypt/live/riot.gilrosenthal.com/privkey.pem
View error.txt
python hyperparameter_tuning/random_cv.py --year 2016 --model_name CNN_FNN
cuda:0
CNN_FNN
joblib.externals.loky.process_executor._RemoteTraceback:
"""
Traceback (most recent call last):
File "/home-nfs/grosenthal/miniconda2/envs/willett/lib/python3.8/site-packages/joblib/externals/loky/process_executor.py", line 431, in _process_worker
r = call_item()
File "/home-nfs/grosenthal/miniconda2/envs/willett/lib/python3.8/site-packages/joblib/externals/loky/process_executor.py", line 285, in __call__
return self.fn(*self.args, **self.kwargs)
View sketchfab-dl-script
// ==UserScript==
// @name sketchfab2obj
// @description Save Sketchfab models as obj
// @author <anonimus>
//
// Version Number
// @version 1.62
//
// Urls process this user script on
// @include /^https?://(www\.)?sketchfab\.com/3d-models/.*
View solve.js
const express = require('express')
const router = express.Router()
const compute = require('compute-rhino3d')
const {performance} = require('perf_hooks')
const NodeCache = require('node-cache')
const cache = new NodeCache()
function computeParams (req, res, next){
compute.url = req.app.get('computeUrl')
View Rhino-Compute.js
var RhinoCompute = {
version: '0.12.0',
url: 'https://compute.rhino3d.com/',
authToken: null,
apiKey: null,
getAuthToken: function (useLocalStorage=true) {
let auth = null
if (useLocalStorage)
auth = localStorage['compute_auth']
@gilrosenthal
gilrosenthal / Fast.ai install script
Created Jul 4, 2018
Fast.ai Install on Google Colab
View Fast.ai install script
!pip install fastai
!apt-get -qq install -y libsm6 libxext6 && pip install -q -U opencv-python
import cv2
from os import path
from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag
platform = '{}{}-{}'.format(get_abbr_impl(), get_impl_ver(), get_abi_tag())
accelerator = 'cu80' if path.exists('/opt/bin/nvidia-smi') else 'cpu'
!pip install -q http://download.pytorch.org/whl/{accelerator}/torch-0.3.0.post4-{platform}-linux_x86_64.whl torchvision
View mapserver.bat
set mypath=%cd%
mkdir plugins
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://drive.google.com/uc?export=download&id=0B02a45DH1-TPWWVKdmJlRWxpbnM', 'wget.exe')"
wget http://addons-origin.cursecdn.com/files/880/435/worldedit-bukkit-6.1.jar --no-check-certificate
wget http://addons-origin.cursecdn.com/files/588/781/Multiverse-Core-2.4.jar --no-check-certificate
wget http://www.filehosting.org/file/details/526701/CommandBook.jar --no-check-certificate
wget http://dev.bukkit.org/media/files/896/104/ArcaneEnchants.jar --no-check-certificate
move /Y %mypath%\*.jar plugins\
wget http://tcpr.ca/files/spigot/spigot-1.8.8-R0.1-SNAPSHOT-latest.jar --no-check-certificate
java -jar spigot-1.8.8-R0.1-SNAPSHOT-latest.jar
View SwedeRisberg.c
int ability = 256;
int numberOfAtBats = 25;
int hitLED = 2;
int missLED = 13;
int totalUnderTwo = 0;
int ledPin[] = {7,8,9,10,11,12};
void setup() {
for (int i =0;i<6;i++)
{
pinMode(ledPin[i], OUTPUT);
View code.css
@import 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.2.0/katex.min.css';code{color:#c7254e;background-color:#f9f2f4;border-radius:4px}code,kbd{padding:2px 4px}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;box-shadow:none}pre{display:block;margin:0 0 10px;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}fieldset{border:0;min-width:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type="radio"],input[type="checkbox"]{margin:1px 0 0;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select