#Reload examples Original code
###Minimal example Reload when '.' key is pressed.
class Leaderboard(Subscriber, Reloadable):
# There is no __init__() with args and no state, so
# neither capture_args() nor _persistent_attributes
#!/bin/bash | |
# Start Minecraft without opening the launcher every time | |
# written by Gjum https://github.com/Gjum | |
# location to store the startup command: | |
faststart="$HOME/.minecraft/.faststart" | |
if [ -f "$faststart" ];then | |
exec "$faststart" | |
else |
#Reload examples Original code
###Minimal example Reload when '.' key is pressed.
class Leaderboard(Subscriber, Reloadable):
# There is no __init__() with args and no state, so
# neither capture_args() nor _persistent_attributes
this repo contains two analogous script prototypes for screencasting to livecoding.tv
#![feature(macro_rules)] | |
/// MIT license etc. etc. | |
/// | |
/// Experimenting with Python-like list comprehensions. | |
/// | |
/// An attempt to explore the possibility space for ergonomic improvements | |
/// in Rust that can come post v1.0. Notice that there are not type declerations. | |
/// Aside from the "c!" macro invocation, Rust allows for an exact copy of the | |
/// Python comprehension syntax. |
"""A simple implementation of a greedy transition-based parser. Released under BSD license.""" | |
from os import path | |
import os | |
import sys | |
from collections import defaultdict | |
import random | |
import time | |
import pickle | |
SHIFT = 0; RIGHT = 1; LEFT = 2; |
function onFormSubmit(e) { | |
var fields = []; | |
for (i = 0; i < e.response.getItemResponses().length; i++) { | |
var response = e.response.getItemResponses()[i]; | |
fields.push({ | |
"name": response.getItem().getTitle(), | |
"value": JSON.stringify(response.getResponse()), | |
"inline": false | |
}); |
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<link type="text/css" rel="stylesheet" href="Styles/style.css"/> | |
<style type="text/css"> | |
path.arc { | |
cursor: move; | |
fill: #fff; |
#You probably want to do this in root to reduce the amount of sudos required | |
su - | |
#Clean out any existing rules and allow incoming traffic to begin with | |
iptables -P INPUT ACCEPT | |
iptables -F | |
#Allow all internal connections | |
iptables -A INPUT -i lo -j ACCEPT |
{"blocks":{"air":0, | |
"stone":1, | |
"granite":1, | |
"polished_granite":1, | |
"diorite":1, | |
"polished_diorite":1, | |
"andesite":1, | |
"polished_andesite":1, | |
"grass_block":1, | |
"dirt":1, |
{"blocks":{"air":0, | |
"stone":1, | |
"granite":1, | |
"polished_granite":1, | |
"diorite":1, | |
"polished_diorite":1, | |
"andesite":1, | |
"polished_andesite":1, | |
"grass_block":1, | |
"dirt":1, |