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
# give Python access to Blender's functionality | |
import bpy | |
# extend Python's math functionality | |
import math | |
# extend Python functionality to generate random numbers | |
import random |
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
# give Python access to Blender's functionality | |
import bpy | |
# extend Python functionality to generate random numbers | |
import random | |
def partially_clean_the_scene(): | |
# select all object in the scene | |
bpy.ops.object.select_all(action="SELECT") |
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
# requriements: | |
# sudo pip3 install vpython | |
# sudo pip3 install pygame | |
import vpython as v | |
import random | |
import pygame | |
#except ModuleNotFoundError: | |
# print("I could not import pygame - joystick support is disabled. Try to (re)install pygame") |
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
iptables -t mangle -N badz | |
iptables -t mangle -N blockz | |
iptables -t mangle -A PREROUTING -p tcp -m tcp --dport 80 -j blockz | |
iptables -t mangle -A badz -m recent --set --name terrible --rsource | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -m recent --update --seconds 3600 --name terrible --rsource -j DROP | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 -m string --string "malicious_string" --algo bm --to 65535 -m recent --set --name bad --rsource | |
iptables -t mangle -A blockz -p tcp -m tcp --dport 80 -m string --string "malicious_string" --algo bm --to 65535 -m recent --update --seconds 10 --hitcount 3 --name bad --rsource -j badz |
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
#include <math_constants> | |
image Input = file("maze.png"); | |
glsl vec4 initialState(vec2 pos) { | |
vec4 input = texture(Input, pos); | |
vec4 color = vec4(0.0, 0.0, 0.0, 1.0); | |
// Detect starting point | |
if (input.g > 0.5 && input.r + input.b < 1.0) |
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
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
[RequireComponent(typeof(GeneratePlaneMesh))] | |
public class DeformableMesh : MonoBehaviour { | |
public float maximumDepression; | |
public List<Vector3> originalVertices; |
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
.486 | |
.model flat, stdcall | |
option casemap :none ; case sensitive | |
include base.inc | |
.code | |
start: | |
invoke GetModuleHandle, NULL | |
mov hInstance, eax |
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
// PREREQUISITES | |
// Requires Jcoord 1.0 http://www.jstott.me.uk/jcoord/api/1.0/ | |
// and Java SimpleDateFormat http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html | |
// Requires the following csv files | |
// openpaths.csv | |
// csv exported from OpenPaths |