Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

René Föhring rrrene

💭
I may be slow to respond.
Block or report user

Report or block rrrene

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View convert_images.ex
defmodule Converter do
def convert_image(_a, _b, _c) do
:ok
end
end
defmodule Converter.StepBuilder do
defmacro __using__(_opts \\ []) do
quote do
Module.register_attribute(__MODULE__, :steps, accumulate: true)
View keybase.md

Keybase proof

I hereby claim:

  • I am rrrene on github.
  • I am rrrene (https://keybase.io/rrrene) on keybase.
  • I have a public key ASAM9dV1b3LCU4ryFJSXxTJpswoux58ZhE4-d7YlQeuf5Qo

To claim this, I am signing this object:

View docs.json
{
"args": [],
"branch_name": "master",
"client_name": "inchjs",
"client_version": "0.4.0",
"git_repo_url": "https://github.com/foreverjs/forever.git",
"language": "javascript",
"objects": [
{
"comment": "//\n// ### @private function (file, options, callback)\n// #### @file {string} Target script to start\n// #### @options {Object} Options to start the script with\n// #### @callback {function} Continuation to respond to when complete.\n// Helper function that sets up the pathing for the specified `file`\n// then stats the appropriate files and responds.\n//",
View example.md

Few weeks back I was reading a blog about concurrency limitations in Ruby (which we all are aware since long) and how Elixir is evolving. Thus I was extremely curious to know this new dynamic functional programming language "Elixir", the two decades old Erlang language & Erlang Virtual Machine (VM) known for running low-latency, distributed and fault-tolerant systems.

This blog post is a result of my curiosity about Elixir and Erlang.

View blog-series-idea.md

Try to blog once a week, describing 1 package that is clearly missing on Hex.

You create a complementary project on GitHub called something like "missing-hex-packages". There you create 1 issue per blog post.

You can ask people to participate in a discussion on the issue and eventually link their implementation of the described package in the issue's comments.

Use the mailing list and/or sites like elixirstatus.com to raise awareness for your blog post series and increase participation.

View gist:9378517d49fe426adf94
TITLE:
Coinbase-Elixir released
TEXT:
I recently released my mostly complete Coinbase API for Elixir.
Check it out: https://github.com/gregpardo/coinbase-elixir
@rrrene
rrrene / buttons.css
Created Jun 23, 2015
Button style suggestion for Alchemist project page
View buttons.css
a.button {
color: #FFFFFF;
/* font: bold 12px Helvetica, Arial, sans-serif; */
text-decoration: none;
padding: 7px 12px;
position: relative;
display: inline-block;
/* text-shadow: 0 1px 0 #fff; */
-webkit-transition: border-color .218s;
-moz-transition: border .218s;
@rrrene
rrrene / Tex ERb key binding
Last active Dec 23, 2015
Key-Binding for erbify sublime snippet
View Tex ERb key binding
{"keys": ["ctrl+shift+c"], "command": "insert_snippet","args": {"contents": "<%= ${1} \"$SELECTION\" %>"}}
View ecc.rb
# derived from http://h2np.net/tips/wiki/index.php?RubyOpenSSLDigitalSignatureSample
require 'openssl'
require 'base64'
include OpenSSL
group_name = 'secp521r1'
message = '10000 fartbux sent to bryce from a can of beans'
key = PKey::EC.new(group_name)
key = key.generate_key
@rrrene
rrrene / simplify_string.rb
Created Jul 19, 2010
Replace european accents and umlauts with their simple counterparts
View simplify_string.rb
# Replace european accents and umlauts with their simple counterparts
# ä -> a, ç -> c, etc.
class String
def simplify
gsub(/[àáâãäåæ]/i, 'a').
gsub(/[ç]/i, 'c').
gsub(/[èéêë]/i, 'e').
gsub(/[ìíîï]/i, 'i').
gsub(/[ñ]/i, 'n').
You can’t perform that action at this time.