Skip to content

Instantly share code, notes, and snippets.

View badosu's full-sized avatar

Amadeus Folego badosu

View GitHub Profile
Sou algo mais do que este punhado de terra
que, em sangue e nervos, se envaidece e se apega
e que ao pó, uma vez mais, há de retornar, disperso;
sou um abismo que o nada do universo quebra,
sou o espaço que seduz a matéria que me integra;
sou a luz de minha lâmpada na noite mais negra
e a mais negra noite quenaod minha lâmpada se apaga;
sou a fronteira dos outros, imprecisa e vaga.
Sou o esgar vencido dos velhos séculos
e o gesto prepotente dos séculas que ainda estão distantes:
r.on 'sidekiq' do
env[Rack::SCRIPT_NAME] = '/admin/sidekiq'
env[Rack::PATH_INFO] = r.remaining_path
status, headers, body = Sidekiq::Web.call(env)
response.status = status
response.headers.merge!(headers)
response.write body.join
end
@badosu
badosu / doc.md
Last active August 29, 2015 14:28

Criação de Vaga

Requisição

POST /available_jobs HTTP/1.1
Host: staging.presume.com.br
Accept: application/vnd.api+json;version=1
Content-Type: application/vnd.api+json
Authorization: Token token="3497f05b416f45eaa23ea1af3eb27536"

{

require 'sanitize'
class Roda
module RodaPlugins
# The h plugin adds an +h+ instance method that will HTML
# escape the input and return it.
#
# The following example will return "<foo>" as the body.
#
# plugin :h
#!/usr/bin/env bash
PROJECT=my_proj
PROJECT_CLASS=MyProj
sed -e "s/yogurt/$PROJECT/g" -i yogurt.rb config.ru views/index.html.erb views/layout.html.erb
sed -e "s/Yogurt/$PROJECT_CLASS/g" -i yogurt.rb config.ru
mv yogurt.rb $PROJECT.rb
mv assets/css/yogurt/yogurt.css assets/css/yogurt/$PROJECT.css
Index: src/jalv_qt4.cpp
===================================================================
--- src/jalv_qt4.cpp (revision 5618)
+++ src/jalv_qt4.cpp (working copy)
@@ -14,25 +14,180 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdio.h>
+#include <math.h>
#![crate_type = "lib"]
#![crate_name = "ssh"]
extern crate libc;
use std::mem;
/*
struct _LV2_Feature
(const char *) URI
void
jalv_ui_port_event(Jalv* jalv,
uint32_t port_index,
uint32_t buffer_size,
uint32_t protocol,
const void* buffer)
{
fprintf(stderr, "%f\n", *(const float*)buffer);
@badosu
badosu / jalv_qt.cpp
Created March 4, 2015 22:18
jalv_qt.cpp
/*
Copyright 2007-2013 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
/*
Copyright 2007-2013 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR