Skip to content

Instantly share code, notes, and snippets.

View itolosa's full-sized avatar
🎯
Focusing

Ignacio Tolosa itolosa

🎯
Focusing
View GitHub Profile
@itolosa
itolosa / yeast.py
Created March 12, 2018 14:34
Porting of yeast.js to yeast.py
import time
alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'
length = 64
map_h = {}
seed = 0
i = 0
prev = None
import math
@itolosa
itolosa / .zshrc
Created August 15, 2018 22:55
nuevo zshrc
#xrandr --output LVDS1 --gamma 1.24:1.36:1.45 --brightness 0.9
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="pygmalion"
export UPDATE_ZSH_DAYS=14
CASE_SENSITIVE="false"
DISABLE_AUTO_TITLE="true"
COMPLETION_WAITING_DOTS="true"
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def all
#byebug
auth = request.env['omniauth.auth']
@identity = Identity.find_or_create_with_omniauth(auth)
if user_signed_in?
if @identity.user == current_user
//#include <16F628.h>
//defino funciones
void calc_day(void);
void tick_clock(void);
void zeller(void);
void check_on(void);
void check_off(void);
void bell(int);
require 'shellwords'
namespace :invoke do
# Defalut to :app roles
set :rake_roles, :app unless fetch(:rake_roles)
desc "Execute a rake task on a remote server (cap invoke:rake TASK=db:migrate)"
task :rake do
if ENV['TASK']

Problema Colores Windows 10

Colores se vuelven demasiado brillantes con mucho contraste y como si estuvieran lavados al momento de cambiar desde una escena oscura a una escena mas brillante. Se demora en responder la pantalla para volver a los colores normales.

Esto es debido al driver de intel que agrega una funcionalidad llamada DPST. Al deshabilitar esa opcion se arregla el problema. En mi caso al correr esta herramienta, lo logre deshabilitar: https://github.com/orev/dpst-control

function filterChars(dv: string): string {
let result = '';
for (const c of dv) {
if ((c >= '0' && c <= '9') || c === 'k') {
result += c;
}
}
return result;
}
@itolosa
itolosa / json-schema-for-google-api-standard.json
Last active March 18, 2021 20:54
Json Schema generated from Google JSON Style Guide orderly syntax
{
"type": "object",
"properties": {
"apiVersion": {
"type": "string"
},
"context": {
"type": "string"
},
"id": {
@itolosa
itolosa / .zshrc
Created September 30, 2021 05:46
my wsl .zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(evalcache zsh-nvm virtualenv autojump pip python urltools)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(context status anaconda virtualenv)
CASE_SENSITIVE="false"
DISABLE_AUTO_TITLE="true"
COMPLETION_WAITING_DOTS="true"
zmodload zsh/zprof
source $ZSH/oh-my-zsh.sh
@itolosa
itolosa / zshrc
Created September 2, 2022 22:45
ultimo zshrc
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(evalcache rbenv brew zsh-nvm virtualenv autojump pip python urltools zsh-autosuggestions)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(context status anaconda virtualenv)
CASE_SENSITIVE="false"
DISABLE_AUTO_TITLE="true"
COMPLETION_WAITING_DOTS="true"
zmodload zsh/zprof
source $ZSH/oh-my-zsh.sh