Skip to content

Instantly share code, notes, and snippets.

View tinchoz49's full-sized avatar
🏄‍♂️
surfing

Martín Acosta tinchoz49

🏄‍♂️
surfing
View GitHub Profile
@tinchoz49
tinchoz49 / gist:5732498
Created June 7, 2013 21:21
UnicodeDecodeError
[INFO ] Kivy v1.8.0-dev
[INFO ] [Logger ] Record log in /home/tincho/.kivy/logs/kivy_13-06-07_27.txt
[INFO ] [Factory ] 143 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s
[INFO ] [Text ] Provider: pygame
@tinchoz49
tinchoz49 / designer.html
Created January 29, 2015 18:16
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@tinchoz49
tinchoz49 / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@tinchoz49
tinchoz49 / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@tinchoz49
tinchoz49 / gist:3656c6a8c62b05a6e4bb
Created March 18, 2015 17:03
components in mithril
var app = {},
buttonComponent = {};
buttonComponent.controller = function ( options ) {
this.title = options.title;
};
buttonComponent.view = function ( ctrl ) {
return m('button', 'The button component: ' + ctrl.title());
};
@tinchoz49
tinchoz49 / ellip.wp.js
Last active August 29, 2015 14:20
ellipsis for wordpress
function ellip( item ) {
var wrap = item,
header = $(item.find('.ellip-header')),
content = $(item.find('.ellip-content')),
footer = $(item.find('.ellip-footer'));
var height = wrap.height(),
margin = 40,
p = $(content.find('p'));
@tinchoz49
tinchoz49 / json
Created September 28, 2016 17:14
timezones
[
{
"name":"Africa/Abidjan",
"offset":"+00:00"
},
{
"name":"Africa/Accra",
"offset":"+00:00"
},
{
@tinchoz49
tinchoz49 / .vimrc
Last active December 31, 2016 21:19
my vimrc
set shell=/bin/bash
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'vim-syntastic/syntastic', { 'do': 'npm install -g resolve-eslint' }
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'terryma/vim-multiple-cursors'
"Plug 'Raimondi/delimitMate'
@tinchoz49
tinchoz49 / .tmux.conf
Last active December 26, 2016 14:49
tmux conf
set -g default-shell /bin/fish
set -g default-terminal "tmux"
set -ga terminal-overrides ",xterm-termite:Tc"
set-option -g mouse on
set-option -g set-titles on
set-option -g set-titles-string "#T"
set-window-option -g mode-keys vi
# change prefix because i use b for a lot of things in vim
unbind C-b
# .config/termite/config
# use tdrop and wmctrl to the dropdown functionality: tdrop -a -m -f "-e /bin/fish" -s dropdown --create-hook "wmctrl -i -r $1 -b toggle,maximized_vert,maximized_horz" termite
[options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
visible_bell = true
mouse_autohide = true
allow_bold = true