I hereby claim:
- I am dakad on github.
- I am davida_apptweak (https://keybase.io/davida_apptweak) on keybase.
- I have a public key ASC8LZF7SyIhcdudsvPVZfD_VRyf1Isw5Sm3LCKn0wDf6go
To claim this, I am signing this object:
# Source: https://stackoverflow.com/a/15502829 | |
require "grape" | |
require "grape-entity" | |
require "json" | |
module JSendSuccessFormatter | |
def self.call object, env | |
{ :status => 'success', :data => object }.to_json | |
end |
-- "extension.lua" | |
-- VLC Extension basic structure (template): ---------------- | |
-- Install | |
-- Windows: %APPDATA%/vlc/lua/extensions/basic.lua | |
-- Mac: /Applications/VLC/.../lua/extensions/basic.lua | |
-- Linux: ~/.local/share/vlc/lua/extensions/basic.lua | |
function descriptor() | |
return { |
I hereby claim:
To claim this, I am signing this object:
You are working on a Rails app that uses a gem named abc
. This gem is hosted on RubyGems and the source code of the gem is available at https://github.com/your-username/abc.
You created a new branch locally for your gem (new-feature
). You wanted to modify the gem and load it directly to your local Rails app. And, you don't want to push the gem changes to GitHub and publish the gem to RubyGems just yet.
You want all the changes that you made in your local gem directory get reflected immediately in your local Rails app without requiring you to run gem build
and gem install
command in the gem's local directory.
GDB commands by function - simple guide | |
--------------------------------------- | |
More important commands have a (*) by them. | |
Startup | |
% gdb -help print startup help, show switches | |
*% gdb object normal debug | |
*% gdb object core core debug (must specify core file) | |
%% gdb object pid attach to running process | |
% gdb use file command to load object |
def producer(name : String, &generator : -> T) forall T | |
Channel(T).new.tap { |ch| | |
spawn(name: name) do | |
loop do | |
ch.send generator.call | |
end | |
end | |
} | |
end |
def producer(name : String, &generator : -> T) forall T | |
Channel(T).new.tap { |ch| | |
spawn(name: name) do | |
loop do | |
ch.send generator.call | |
end | |
end | |
} | |
end |
def producer(name : String, &generator : -> T) forall T | |
Channel(T).new.tap { |ch| | |
spawn(name: name) do | |
loop do | |
ch.send generator.call | |
end | |
end | |
} | |
end |
#!/bin/bash | |
# source: https://gist.github.com/francoisromain/58cabf43c2977e48ef0804848dee46c3 | |
# and another script to delete the directories created by this script | |
# project-delete.sh: https://gist.github.com/francoisromain/e28069c18ebe8f3244f8e4bf2af6b2cb | |
# Call this file with `bash ./project-create.sh project-name` | |
# - project-name is mandatory | |
# This will creates 4 directories and a git `post-receive` hook. |