Skip to content

Instantly share code, notes, and snippets.

View frankywahl's full-sized avatar
🧑‍💻

Franky W. frankywahl

🧑‍💻
View GitHub Profile
@frankywahl
frankywahl / .gitignore
Last active May 7, 2021 19:13
GoReleaser Issue
dist/
package main_test
import (
"fmt"
"io"
"runtime"
"testing"
"time"
)
@frankywahl
frankywahl / ghGist.html
Last active September 11, 2018 22:35
Gist table example for Hugo with JSON loading
<!-- shortcodes/ghGist.html -->
<table class="table ghStarred" style="border: 1px;">
<thead>
<tr>
<td> Message </td>
<td> URL </td>
<td> Public </td>
</tr>
</thead>
{{ $url := .Get "url" }}
@frankywahl
frankywahl / Netflix.md
Last active January 5, 2025 06:56
Netflix list of genres
@frankywahl
frankywahl / new-ruby-script.rb
Created December 28, 2016 03:46
new-ruby-script
#!/usr/bin/env ruby
# encoding: utf-8
require 'optparse'
require 'ostruct'
begin
require 'pry'
rescue LoadError
puts 'Pry is not availble'
@frankywahl
frankywahl / basic_math.rb
Last active September 11, 2018 17:58
Basic Math
module BasicMath
def sum
reduce(0) { |acc, val| val + acc }
end
def mean
sum.to_f / length
end
def deviations
@frankywahl
frankywahl / Review.md
Created March 3, 2016 02:41
Description about reviewing a PR

PR Review checks

For the PR Requester

Must haves

  • Description of the PR (summary)
    • Ideally in commit message(s) (as it is searchable)
      • (optional) Screenshot for documentation
    • If not, in the PR description
    • Are there links to a ticket / issue ?
@frankywahl
frankywahl / intstance_variables_ruby.rb
Last active September 11, 2018 17:59
Playing with instance variables
require 'pry'
require 'rspec'
# Not using class variables
class PersonNoVar
@counter = 0
class << self
attr_accessor :counter
end
@frankywahl
frankywahl / TweetRemover.js
Last active September 11, 2018 17:59
Remove all Twitter tweets
var remove_tweet = function() {
setTimeout(function(){
tweet = $('.Icon.Icon--dots')[0].click()
setTimeout(function () {
$(".js-actionDelete .dropdown-link").click()
setTimeout(function(){
$('.btn.primary-btn.delete-action')[0].click();
}, 100);