Skip to content

Instantly share code, notes, and snippets.

View GusGA's full-sized avatar
🕶️
Reading someone else's code

Gustavo Giménez GusGA

🕶️
Reading someone else's code
  • Santiago, Chile
View GitHub Profile
@cristianrasch
cristianrasch / pgp-encryption-guide.md
Last active May 9, 2019 11:28
PGP Encryption Guide

PGP encryption guide

Generating your key pair

gpg --gen-key

echo "export GPGKEY=01086FDA" > ~/.bashrc

@gbuesing
gbuesing / ml-ruby.md
Last active December 3, 2024 08:13
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems

[18:00:21] - naamio.fi.eu.synirc.net Message of the Day -
[18:00:21] - 24/10/2012 20:26
[18:00:21] -
[18:00:21] - ....... .
[18:00:21] - ......?NMMNMMMMMMNMMMD,. .
[18:00:21] - .. :MMMMMMMMMMMMMMMMMMMMMMMM$...
[18:00:21] - ....NMMMMMMMMMMMMMMMMMMMMMMMMMMMMN=. .
[18:00:21] - ..:NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM$ ,
[18:00:21] - . MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM~.
[18:00:21] - ..DNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN..
( ͡° ͜ʖ ͡°)
(ಠ_ರೃ)
ಠ益ಠ
ಠoಠ
find . -name '*.js' -exec sh -c 'js-beautify {} > _tmp_ && mv _tmp_ {}' \;
@thpani
thpani / rpi.md
Last active December 25, 2015 22:49
My Raspberry Pi setup routine

Raspberry Pi setup routine

Note I've started to transform my setup guide to Ansible playbooks at thpani/pi.

Headless boot to SSH over WiFi

/etc/network/interfaces

@RainMonster
RainMonster / rails_routes_guide.md
Last active December 23, 2015 07:49
Short introduction to routes in Rails.

###Comparison of route breakdown between Sinatra and Rails: ###

in Sinatra routes were written like this:

    get '/' do
      #some Ruby code
      erb :index
    end

This is taken apart in Rails. The first line now resides in config/routes.rb and is decoupled from the Ruby code (now in controllers) and the view.

@betacar
betacar / elefantes.rb
Last active December 21, 2015 20:39 — forked from GusGA/elefantes.rb
i = 1
loop {
if i == 1
p "1 elefante se balanceaba sobre la tela de una araña, como veia que resistía fue a llamar a otro elefante"
else
p "#{i} elefantes se balanceaban sobre la tela de una araña, como veian que resistía fueron a llamar a otro elefante"
end
i += 1
sleep 5
}
@whatsthebeef
whatsthebeef / world.json
Last active February 8, 2025 15:24
world.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
include Math;R1=1.0; R2=2.0;K2=5.0
SS=40;K1=SS*K2*3/(8*(R1+R2));def rf(a, b)
cosA=cos(a);sinA=sin(a);cosB=cos(b);sinB=sin(b)
o=Array.new(SS).fill{Array.new(SS).fill(' ')};b=Array.
new(SS).fill{ Array.new(SS).fill(0)}; t=0.0;while t<2*PI
cost=cos(t);sint=sin(t);p=0.0;while p<2*PI;cosp=cos(p);sinp=
sin(p);cx=R2+R1*cost;cy=R1* sint;x=cx*(cosB*cosp+sinA*
sinB*sinp)-cy*cosA*sinB; y=cx*(sinB*cosp-sinA*##
cosB*sinp)+cy*cosA*cosB ;z=K2+cosA*cx*sinp+cy*
sinA;ooz=1/z;xp=(SS/2+K1* ooz*x).to_i ;yp= (SS/2-