Skip to content

Instantly share code, notes, and snippets.

View michelson's full-sized avatar
🏠
Working from home

Miguel Michelson Martinez michelson

🏠
Working from home
View GitHub Profile
{
"development": {
"hosts": [
"127.0.0.1:9160"
],
"keyspace":"dev_events"
}
}
@michelson
michelson / python config
Last active February 9, 2016 03:38
config python for blender
- install pythonz
- sudo pythonz install 3.4.1
- pythonz locate 3.4.1
- cd /Applications/Blender.app/Contents/Resources/2.75/
- virtualenv -p PATH_TO_PYTHON3 python
- bin/pip install python-osc
- then, the copy folder to blender python
## start here:
- https://github.com/notro/rpi-source/wiki
## then here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=99688
and
@michelson
michelson / cimgui-compile-result
Created April 24, 2016 05:07
cimgui test.c compile
In file included from test.c:2:
./cimgui.h:26:12: error: unknown type name 'ImGuiIO'
CIMGUI_API ImGuiIO* igGetIO();
^
./cimgui.h:27:12: error: unknown type name 'ImGuiStyle'
CIMGUI_API ImGuiStyle* igGetStyle();
^
./cimgui.h:28:12: error: unknown type name 'ImDrawData'
CIMGUI_API ImDrawData* igGetDrawData();
^
@michelson
michelson / kind_behavior.rb
Created July 15, 2016 04:58
kind behavior
module Concerns
module KindBehavior
extend ActiveSupport::Concern
included do |base|
#base.extend( Concerns::KindBehavior::ModelClassMethods )
# usage
defmodule UploaderHandler do
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
# import Supervisor.Spec
IO.puts "iniciando"
children = [
require 'rubygems'
require 'json'
require 'em-hiredis'
require 'faye/websocket'
require 'rack'
Faye::EventSource.class_eval do
attr_accessor :connected_at
end
@michelson
michelson / file1.txt
Created December 31, 2018 02:49
My first gist
Aren't gists great!
@michelson
michelson / danteRenderer
Created December 2, 2019 05:12
dante renderer example from redraft
/**
* You can use inline styles or classNames inside your callbacks
*/
import React, {Component} from 'react'
import redraft from 'redraft'
var Prism = require('prismjs');
//Prism.highlightAll();
<%= turbo_frame_tag "conversation-list-#{@app.key}" do %>
<%= render partial: 'conversation', collection: @conversations, locals: {app: @app} %>
<% end %>