I hereby claim:
- I am duksis on github.
- I am duksis (https://keybase.io/duksis) on keybase.
- I have a public key whose fingerprint is 8013 D9C8 8BBF 0346 D8FA 8073 58C1 86B9 7847 F196
To claim this, I am signing this object:
# bundle exec ruby live_coverage.rb | |
require 'simplecov' | |
SimpleCov.start 'rails' | |
puts 'required simplecov' | |
require './config/environment' | |
require 'rails/commands/server' | |
Rails::Server.start |
#!/usr/bin/env ruby | |
# | |
# This file was generated by Bundler. | |
# | |
# The application 'unicorn' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'pathname' | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", |
I hereby claim:
To claim this, I am signing this object:
# # https://gist.github.com/ashneyderman/5c88439c68b19ecf50d5 | |
# @type reducer :: (term, term -> term) | |
# @spec deep_foldl(list, term, reducer) :: term | |
# | |
# ## deep folds should accept arbitrarily deep nested lists | |
# ## it should call the fun on anything which is not a list. | |
# ## For a flat list, it should do the same thing as erlang's | |
# ## lists:foldl/3. | |
# | |
# 15 = deep_foldl([[1,[2,[3,[4,5]]]]], 0, fn(N,Sum) -> N+Sum end). |
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Fetching custom git buildpack... done | |
remote: -----> elixir app detected | |
remote: -----> Checking Erlang and Elixir versions | |
remote: Will use the following versions: | |
remote: * Stack cedar-14 | |
remote: * Erlang R16B | |
remote: * Elixir 0.10.2 |
var renderer = PIXI.autoDetectRenderer(750, 600,{backgroundColor : 0x1099bb}); | |
document.getElementById("rotating-honeypot").appendChild(renderer.view); | |
// create the root of the scene graph | |
var stage = new PIXI.Container(); | |
// create a texture from an image path | |
var texture = PIXI.Texture.fromImage('../assets/images/mascot.png'); | |
// create a new Sprite using the texture |
# helper function for creating double modules | |
# with function `call` returning initially provided data | |
# | |
# argument exampes: | |
# name = SomeModuleTest.ForTestCase | |
# data = [%{"some" => "data"}] | |
def create_double_module(name, data) do | |
contents = quote do | |
def call(_module, _fun, _args) do |
In software development there are loads of "Best practices" or suggestions what to do and what not in order to come to a better result.
For most of the cases you will be better of by just folowing these suggestions and for the rest it's very handy to understand why these suggestions exist.
In software development there are loads of "Best practices" or suggestions what to do and what not in order to come to a better result.
For most of the cases you will be better of by just folowing these suggestions and for the rest it's very handy to understand why these suggestions exist.
curl 'https://gql.example.com/v1' \ | |
-d '{"query": "query($id:Int!) user(id: $id) { name }", "variables": {"id": 1}}' |