Skip to content

Instantly share code, notes, and snippets.

View gusano's full-sized avatar
👾
React.js, Remix.run, frontend

Yvan Volochine gusano

👾
React.js, Remix.run, frontend
View GitHub Profile
@gusano
gusano / init.vim
Created December 1, 2019 22:04 — forked from danmikita/init.vim
File preview with FZF, RG, Bat, and Devicons
nnoremap <silent> <leader>e :call Fzf_dev()<CR>
" ripgrep
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
endif
" Files + devicons
@gusano
gusano / readme.md
Created April 6, 2017 20:15
Making archlinux use DNS Masq for whatever reason

Login and become root:

sudo su -

Update your stuff (maybe? I dunno whatevs)

pacman -Syu
@gusano
gusano / SonaGraph.schelp
Created March 10, 2017 02:40
SuperCollider SonaGraph-like implementation, with help file
TITLE:: SonaGraph
summary:: A piano-tuned spectrum analyzer/visualizer, inspired by Kay Sonagraph
categories:: Analysis
related:: Classes
DESCRIPTION::
The classic Kay Sonagraph was based on a bank of filters used to plot on paper spectral information, widely used in phonetics and acoustic analysis (bird singing). SonaGraph works in two steps. First, a sound is analized by passing it through a 88 band pass filter, tuned on piano keys. Amps in dB and pitch are collected and data are then available to manipulation/visualization. Second, data can be explored interactively by the included GUI.
CLASSMETHODS::
@gusano
gusano / gist:6774954
Created October 1, 2013 07:27
sclang crash when SerialPort closed
sc3> p = SerialPort("/dev/ttyUSB0", 115200)
portName /dev/ttyUSB0
[New Thread 0x7fffa2e93700 (LWP 1105)]
a SerialPort
sc3> p.close()
a SerialPort
sc3> SerialPort /dev/ttyUSB0 was closed
SerialPort Cleanup
terminate called after throwing an instance of 'std::system_error'
what(): Resource deadlock avoided
@gusano
gusano / update_sf.net_repo_url.diff
Created June 25, 2013 09:28
[pix_opencv] Update README to new sf.net repo url
Index: README.txt
===================================================================
--- README.txt (revision 17158)
+++ README.txt (working copy)
@@ -2,7 +2,7 @@
get the source version through svn :
-svn co https://pure-data.svn.sourceforge.net/svnroot/pure-data pure-data
+svn co https://svn.code.sf.net/p/pure-data/svn pure-data
@gusano
gusano / fix_build_archlinux.diff
Created June 19, 2013 13:11
Fix pix_opencv build on Archlinux (only one failing is now `pix_opencv_blobtrack`).
Index: Makefile
===================================================================
--- Makefile (revision 17144)
+++ Makefile (working copy)
@@ -6,7 +6,7 @@
# add your .cc source files, one object per file, to the SOURCES
# variable, help files will be included automatically, and for GUI
# objects, the matching .tcl file too
-SOURCES = pix_opencv_edge.cc pix_opencv_laplace.cc pix_opencv_morphology.cc pix_opencv_distrans.cc pix_opencv_motempl.cc pix_opencv_haarcascade.cc pix_opencv_contours_boundingrect.cc pix_opencv_bgsubstract.cc pix_opencv_contours_convexity.cc pix_opencv_dft.cc pix_opencv_lk.cc pix_opencv_hist_compare.cc pix_opencv_knear.cc pix_opencv_threshold.cc pix_opencv_floodfill.cc pix_opencv_athreshold.cc pix_opencv_bgstats.cc pix_opencv_camshift.cc pix_opencv_hu_compare.cc pix_opencv_pgh_compare.cc pix_opencv_hough_circles.cc pix_opencv_hough_lines.cc pix_opencv_hu_moments.cc pix_opencv_contours_convexhull.cc pix_opencv_colorfilt.cc pix_opencv_of_bm.cc pix_opencv_of_hs.cc pix_opencv_of_lk.cc pi
@gusano
gusano / cyberpunk.el
Last active July 27, 2024 02:50
cyberpunk.el color theme for Supercollider
;; Cyberpunk Colour Theme
;;
;; "and he'd still see the matrix in his sleep, bright lattices of logic
;; unfolding across that colorless void..."
;; William Gibson, Neuromancer.
;;
(require 'color-theme)
;;;###autoload
@gusano
gusano / gist:5524960
Created May 6, 2013 13:03
Tweaked plist for Asymmetric hd DreamBoard theme (added phone|sms notifications, etc)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DynamicViews</key>
<dict>
<key>kb</key>
<dict>
<key>ClipToBounds</key>
<true/>
@gusano
gusano / gist:5336265
Created April 8, 2013 11:52
Delete all branches that are already merged into the currently checked out branch.
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d