Skip to content

Instantly share code, notes, and snippets.

View despo's full-sized avatar
🌈

Despo Pentara despo

🌈
View GitHub Profile
@despo
despo / github-actions-sample.yml
Created October 29, 2020 17:13
Gtihub actions for Rails 6
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
@despo
despo / test.md
Created September 26, 2014 15:31

test

There is something to be learned from a rainstorm. When meeting with a sudden shower, you try not to get wet and run quickly along the road. But doing such things as passing under the eaves of houses, you still get wet. When you are resolved from the beginning, you will not be perplexed, though you will still get the same soaking. This understanding extends to everything.

...
# ==> Configuration for any authentication mechanism
# Configure which keys are used when authenticating a user. The default is
# just :email. You can configure it to use [:username, :subdomain], so for
# authenticating a user, both parameters are required. Remember that those
# parameters are used only when authenticating and not when retrieving from
# session. If you need permissions, you should implement that in a before filter.
# You can also supply a hash where the value is a boolean determining whether
# or not authentication should be aborted when the value is not present.
config.authentication_keys = [ :login ]
@despo
despo / deferred_garbage_collection.rb
Created December 13, 2013 11:31
Deferred Garbage Collection
class DeferredGarbageCollection
DEFERRED_GC_THRESHOLD = (ENV['DEFER_GC'] || 15.0).to_f
@@last_gc_run = Time.now
def self.start
GC.disable if DEFERRED_GC_THRESHOLD > 0
end
@despo
despo / ada_lovelace.jpg
Last active December 29, 2015 13:49
advanced-html5
ada_lovelace.jpg
@despo
despo / anita-bottom.jpg
Last active December 28, 2015 21:38
html-lesson-5
anita-bottom.jpg
@despo
despo / cobol.jpg
Last active December 28, 2015 04:39
codebar-html-lesson-4
cobol.jpg
@despo
despo / ada_lovelace.jpg
Last active December 27, 2015 12:49
http://codebar.io - HTML & CSS - Lesson 3
ada_lovelace.jpg
@despo
despo / rails_cl_basics.png
Last active December 16, 2015 12:08
image center
Not much to see here