Skip to content

Instantly share code, notes, and snippets.

Gil Rosenthal gilrosenthal

Block or report user

Report or block gilrosenthal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
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>
You can’t perform that action at this time.