View rpc.py
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
#!/usr/bin/env python3 | |
import random | |
choices = ["scissors","paper","rock","lizard","spock"] | |
interactions = [ | |
[ "", "cut", "", "behead", ""], | |
[ "", "", "wraps", "", "disproves"], | |
[ "smashes", "", "", "crushes", ""], | |
[ "", "eats", "", "", "poisons"], |
View cat.py
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from random import randint | |
from functools import reduce | |
print("There is a row of boxes. A cat is hiding in one of the boxes.") | |
print("Every time you check a box, the cat (invisibly) moves to an adjacent box.") | |
print() | |
print("Find a pattern that corners the cat with the least number of checks!") |
View 10-keyboard.conf
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
Section "InputClass" | |
Identifier "keyboard-all" | |
Driver "evdev" | |
MatchIsKeyboard "on" | |
Option "XkbLayout" "us,gr" | |
Option "XkbVariant" "altgr-intl," | |
Option "XkbOptions" "grp:caps_switch,terminate:ctrl_alt_bksp,keypad:future,nbsp:level3n,lv3:ralt_switch_multikey" | |
EndSection |
View orbelems.cpp
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
/* | |
* This is some code that converts cartesian coordinate state vectors to | |
* classical orbital elements, and back again. | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
double Em11 = 0.00000000001; | |
double G = 6.67300 * Em11; |
View Makefile
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
MCU_TARGET=atmega328p | |
ARDUINO_DIR=/usr/share/arduino | |
ARDUINO_HARDWARE:=$(ARDUINO_DIR)/hardware/arduino | |
ARDUINO_CORE:=$(ARDUINO_HARDWARE)/avr/cores/arduino | |
ARDUINO_VARIANT:=$(ARDUINO_HARDWARE)/avr/variants/standard | |
ARDUINO_CORE_LIBRARIES=Wire SPI | |
ARDUINO_LIBDIRS=Adafruit_MLX90614_Library |
View openrc-init-pia
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
#!/sbin/openrc-run | |
command="/root/bin/pia-wg.sh" | |
CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}" | |
CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}" | |
extra_started_commands="reload" | |
depend() { |
View fix-printf.c
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
// from https://forum.arduino.cc/index.php?topic=149785.msg1125620#msg1125620 | |
#include "fix-printf.h" | |
#include <stdlib.h> | |
#if ARDUINO >= 100 | |
#include "Arduino.h" | |
#else | |
#include "WProgram.h" |
View input.settings
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
[BASE_ALL_ATTACKS] | |
IK_None=(Action=SpecialAttackLight,State=Duration,IdleTime=0.2) | |
IK_None=(Action=SpecialAttackWithAlternateHeavy,State=Duration,IdleTime=0.2) | |
IK_None=(Action=SpecialAttackHeavy,State=Duration,IdleTime=0.2) | |
IK_None=(Action=AttackWithAlternateHeavy) | |
IK_LShift=(Action=PCAlternate) | |
IK_Pad_Y_TRIANGLE=(Action=SpecialAttackHeavy,State=Duration,IdleTime=0.2) | |
IK_Pad_Y_TRIANGLE=(Action=AttackHeavy) | |
IK_LeftMouse=(Action=AttackWithAlternateLight) | |
IK_LeftMouse=(Action=SpecialAttackWithAlternateLight,State=Duration,IdleTime=0.2) |
View involute_gear_2d.scad
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
module gear_shape_2d ( | |
number_of_teeth = 15, | |
circular_pitch = false, diametral_pitch = false, | |
pressure_angle = 28, | |
clearance = 0.2, | |
circles=0, | |
backlash=0, | |
involute_facets=0) | |
{ | |
if (circular_pitch==false && diametral_pitch==false) |
View persistent.sfs
This file has been truncated, but you can view the full file.
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
GAME | |
{ | |
version = 0.23.0 | |
Title = Lentil (CAREER) | |
Description = No description available. | |
Mode = 1 | |
Status = 1 | |
scene = 5 | |
flag = Squad/Flags/kerbinmunflag | |
PARAMETERS |
NewerOlder