Skip to content

Instantly share code, notes, and snippets.

View yyolk's full-sized avatar
๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ

Joseph Chiocchi yyolk

๐Ÿฏ
๐™ง๐™š๐™˜๐™ช๐™ง๐™จ๐™ž๐™ซ๐™š ๐™ฉ๐™–๐™ช๐™ฉ๐™ค๐™ก๐™ค๐™œ๐™ฎ
View GitHub Profile
@yyolk
yyolk / pushover.rb
Last active December 21, 2015 15:19 — forked from milligramme/pushover.rb
default to use ARGV[1..-1] (everything after calling the script)
#!/usr/bin/env ruby
require "net/https"
url = URI.parse("https://api.pushover.net/1/messages")
req = Net::HTTP::Post.new(url.path)
req.set_form_data({
:token => "abc123",
:user => "user123",
:message => "#{ARGV[1..-1].join(" ")}",
})
@yyolk
yyolk / _rtorrent-pushover.md
Last active October 31, 2022 00:23
rtorrent + pushover howto & sample

#script to use pushover for rtorrent notifications

Used for openelec [unofficial][unofficial] rtorrent addon but can be part of any rtorrent setup.

  1. Buy Pushover for [iOS][ios] or [Android][android]
  2. Create a new app, and upload a custom icon for your notifications.
  3. [Download][rbraw] or copy rtorrent-notification.rb into a new file
  4. Insert your new app's API token in script under token
@yyolk
yyolk / -
Created August 22, 2013 19:21
find . -name "*.pyc" -exec git rm -f {} \;
pacman -Su
after
pacman -Syu --ignore filesystem
/*
* Cloth Simulation using a relaxed constrains solver
*/
// Suggested Readings
// Advanced Character Physics by Thomas Jakobsen Character
// http://freespace.virgin.net/hugo.elias/models/m_cloth.htm
// http://en.wikipedia.org/wiki/Cloth_modeling
// http://cg.alexandra.dk/tag/spring-mass-system/
{
"name": "b0",
"type": "Button",
"bounds": [0, 0, .02, .02],
"address": "/p0",
},
{
"name": "b1",
"type": "Button",
"bounds": [0, 0, .02, .02],
@yyolk
yyolk / hornet.js
Last active December 20, 2015 07:49 — forked from andrew-dash/hornetController.js
hornet
loadedInterfaceName = "template";
interfaceOrientation = "portrait";
pages = [[
{
"name": "refresh",
"type": "Button",
"bounds": [.6, .9, .2, .1],
"startingValue": 0,
@yyolk
yyolk / ws2801BASE.ino
Last active December 20, 2015 07:29 — forked from andrew-dash/ws2801BASE
#include "SPI.h"
#include "Adafruit_WS2801.h"
Adafruit_WS2801 strip = Adafruit_WS2801(32);
void setup() {
Serial.begin(115200);
strip.begin();
strip.show();
}
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
.sw*