Skip to content

Instantly share code, notes, and snippets.

View badosu's full-sized avatar

Amadeus Folego badosu

View GitHub Profile
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b390e9 in Fl_Tiled_Image::draw(int, int, int, int, int, int) () from /usr/local/lib/libntk.so.1
(gdb) backtrace
#0 0x00007ffff7b390e9 in Fl_Tiled_Image::draw(int, int, int, int, int, int) () from /usr/local/lib/libntk.so.1
#1 0x00007ffff7b49d58 in Fl_Widget::draw_backdrop() const () from /usr/local/lib/libntk.so.1
#2 0x00007ffff7b49e3a in Fl_Widget::draw_box(Fl_Boxtype, int, int, int, int, unsigned int) const () from /usr/local/lib/libntk.so.1
#3 0x00007ffff7b3f275 in Fl_Window::draw() () from /usr/local/lib/libntk.so.1
#4 0x00007ffff7afbfce in Fl_Double_Window::flush(int) () from /usr/local/lib/libntk.so.1
#5 0x00007ffff7aecab5 in Fl::flush() () from /usr/local/lib/libntk.so.1
#6 0x00007ffff7aed7fb in Fl::wait(double) () from /usr/local/lib/libntk.so.1
/*
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
@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
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);
#![crate_type = "lib"]
#![crate_name = "ssh"]
extern crate libc;
use std::mem;
/*
struct _LV2_Feature
(const char *) URI
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>
#!/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
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 "&lt;foo&gt;" as the body.
#
# plugin :h
@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"

{

@badosu
badosu / gist:1142264
Created August 12, 2011 15:16
.vimrc for integration with TFS
function! TFSetBin(binpath)
let g:tfvim_bin = a:binpath
endfunction
function! TFget(...)
let rec = 0
let all = 0
let prev = 0
let files = ""
for i in range(1, a:0)