Skip to content

Instantly share code, notes, and snippets.

Avatar

Gil Rosenthal gilrosenthal

View GitHub Profile
View Crippled Divide
<?xml version="1.0"?>
<map proto="1.3.6">
<name>Crippled Divide</name>
<version>1.0.0</version>
<objective>Destroy the Core and Monuments from your Enemy and defend your own.</objective>
<authors>
<author uuid="c2848337-b526-4db0-9130-fabd0a5c7cfb"/> <!-- Rasta_Jol -->
<author uuid="a4266139-34f3-46c5-a730-f8828376a15a"/> <!-- LarrowHead -->
</authors>
<contributors>
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
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 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 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']
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 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 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 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