I hereby claim:
- I am ollpu on github.
- I am ollpu (https://keybase.io/ollpu) on keybase.
- I have a public key ASBeeRUHMXf1WmUgJpNDyvWa7TUTdwNHv94-ivKcFmfKoQo
To claim this, I am signing this object:
/** | |
* This sketch demonstrates how to create synthesized sound with Minim | |
* using an AudioOutput and an Oscil. An Oscil is a UGen object, | |
* one of many different types included with Minim. By using | |
* the numbers 1 thru 5, you can change the waveform being used | |
* by the Oscil to make sound. These basic waveforms are the | |
* basis of much audio synthesis. | |
* | |
* For many more examples of UGens included with Minim, | |
* have a look in the Synthesis folder of the Minim examples. |
scheduler sched = new scheduler("drawSomething"); | |
void setup() { | |
size(500, 500); | |
sched.scheduleLoopingTask(1000); | |
frameRate(2); | |
} | |
void draw() { |
//DMX communication protocol for Processing ---> Arduino | |
//Made by Roope Salmi | |
void setup() { | |
Serial.begin(115200); | |
} | |
byte message[3]; |
# Set ENV["TELEGRAM_BOT_API_KEY"] before usage! | |
# Use telegram#repair to connect to API | |
require "net/http" | |
require "uri" | |
include ActionView::Helpers::TextHelper | |
class TelegramController < ApplicationController | |
protect_from_forgery with: :null_session |
#!/bin/bash | |
# First parameter describes the input video file | |
mplayer -ao null "$1" -vo jpeg:outdir=output | |
convert output/* fuzz 10% -layers Optimize output.gif | |
rm -r ./output |
.data | |
output_format: | |
.asciz "%d\n" | |
.balign 4 | |
.text | |
parse_number: | |
// while numeric, mul register by 10, add number |
I hereby claim:
To claim this, I am signing this object:
/* Compilation: | |
Requires libsdl2-dev | |
$ g++ --std=c++14 -lSDL2 -o gen gen.cpp | |
*/ | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_audio.h> | |
#include <iostream> | |
#include <cmath> |
func! IncludeGuard() | |
let l:h = tr(toupper(expand("%:t")), ".", "_") | |
call append(0, "#ifndef ".h) | |
call append(1, "#define ".h) | |
call append(2, "") | |
call append(line("$"), "") | |
call append(line("$"), "#endif") | |
endfunc |
require 'json' | |
require 'net/http' | |
module TgAPI | |
BOT_TOKEN = "[...]" | |
def self.api_do action, **params | |
uri = URI.parse "https://api.telegram.org/bot#{BOT_TOKEN}/#{action.to_s}" | |
response = Net::HTTP.post uri, params.to_json, "Content-Type" => "application/json" | |
unless response.is_a? Net::HTTPSuccess | |
m = JSON.parse(response.body)&.[]("description") rescue nil |