Skip to content

Instantly share code, notes, and snippets.

View aDotInTheVoid's full-sized avatar

Alona Enraght-Moony aDotInTheVoid

View GitHub Profile
@marklit
marklit / run.py
Created August 26, 2021 19:47
prettymaps CLI
import vsketch
from prettymaps import *
import matplotlib.font_manager as fm
from matplotlib import pyplot as plt
import click
@click.command()
@click.option('--location', default='Old Town, Tallinn')
@click.option('--radius', default=1000, type=int)
@Genora51
Genora51 / robot.c
Last active December 4, 2017 10:34
#pragma config(I2C_Usage, I2C1, i2cSensors)
#pragma config(Sensor, I2C_1, armEncoder, sensorQuadEncoderOnI2CPort, , AutoAssign)
#pragma config(Motor, port1, rightFrontMotor, tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port2, leftFrontMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, rightBackMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, rightArmMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, leftIntakeMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port6, rightIntakeMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port7, clawLiftMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port8, leftArmMotor, tmotorVex393_MC29, openLoop, encoderPort, I2C_1)
@jamesarosen
jamesarosen / two-travis-builds.md
Last active June 5, 2021 18:39
Running Two Very Different Travis Builds

I have a project that's been happily chugging along on Travis for a while. Its .travis.yml looks something like

script:
  - node_modules/ember-cli/bin/ember test

I wanted to add a second parallel build that did something very different. I didn't want to run ember test with a different Ember version or some other flag. I wanted to run a completely different command. Specifically, I wanted to run LicenseFinder's audit.

Travis has great docs on customizing parallel builds, but nothing describes how to do two completely different commands.

@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active June 2, 2024 09:37
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 4, 2024 17:58
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@abhin4v
abhin4v / Fibonacci.java
Created November 24, 2009 18:46
Python-style Generator in Java
package net.abhinavsarkar.util;
/**
* A (infinite) Fibonacci number generator.
*
* @author Abhinav Sarkar
*/
public class Fibonacci extends Generator<Integer> {