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
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
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
<?xml version="1.0"?> | |
<configuration> | |
<system.diagnostics> | |
<switches> | |
<add name="ShowErrors" value="4"/> | |
</switches> | |
<!-- log to debug output --> | |
<sources> |
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 <stdio.h> | |
int main() { | |
printf("Hello World!\n"); | |
} |
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
autoload -Uz compinit | |
compinit | |
alias ls="ls -F --color" | |
alias vi="/usr/local/bin/nvim" | |
PS1=" | |
▶ %F{81}%U%~%u%f %F{8}$%f " |
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/python | |
# | |
# git-slim | |
# | |
# Remove big files from git repo history. | |
# | |
# Requires GitPython (https://github.com/gitpython-developers/GitPython) | |
# | |
# References: | |
# - http://help.github.com/remove-sensitive-data/ |
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 node | |
var request = require('request-promise'), | |
Table = require('cli-table'); | |
var jiraUrl = 'http://jira.yourcompany.com', // change this | |
rapidViewId = 1, // get this from the rapid board URL | |
url = jiraUrl + '/rest/greenhopper/1.0/xboard/plan/backlog/epics?rapidViewId=' + rapidViewId, | |
interestingEpics = []; // add epic IDs to restrict what's included | |
var progressBar = function (percentageCompleted) { |
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
#![no_std] | |
#![no_main] | |
use panic_probe as _; | |
mod microgroove { | |
mod sequencer { | |
use heapless::Vec; | |
use midi_types::{Channel, Note, Value14, Value7}; |
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 <Arduino.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define DISPLAY_WIDTH_PX 128 | |
#define DISPLAY_HEIGHT_PX 64 | |
#define DISPLAY_ADDRESS 0x3D | |
Adafruit_SSD1306 display(DISPLAY_WIDTH_PX, DISPLAY_HEIGHT_PX, &Wire); |
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 <Arduino.h> | |
#include <RotaryEncoder.h> | |
#define PIN_IN1 2 | |
#define PIN_IN2 3 | |
RotaryEncoder encoder(PIN_IN1, PIN_IN2); | |
int lastPos = 0; | |
void setup() { |
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 python | |
"""Export CSV from an RRD XML dump. | |
Usage: rrdxml.py file.xml rra | |
Where rra is the 0-based index for the RRA you want to dump. | |
""" | |
from csv import writer | |
from itertools import chain, izip |
NewerOlder