Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
version: '3.4' | |
secrets: | |
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token) | |
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN` | |
GITLAB_REGISTRATION_TOKEN: | |
external: true | |
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api) | |
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>` |
source 'https://rubygems.org' | |
gem 'roda' | |
gem 'typhoeus' | |
gem 'thin' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
before_filter :login_required | |
helper_method :current_user | |
def current_ability | |
@current_ability ||= Ability.new(current_user) | |
end |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# prints a sparkline in the terminal using the supplied list of numbers | |
# examples: | |
# spark.rb 10 20 30 100 90 80 | |
# spark.rb 1 2 0.4 0.1 1.3 0.7 | |
@ticks = %w[▁ ▂ ▃ ▄ ▅ ▆ ▇] | |
values = ARGV.map { |x| x.to_f } |
// to build: | |
// lessc <filename> > site.css | |
// lessc <filename> > site.min.css --compress | |
// the swatch | |
@color1: #55626b; | |
@color2: #6c9380; | |
@color3: #c1ca55; | |
@color4: #f07d6b; | |
@color5: #ad5472; |
# Enables support for Compass, a stylesheet authoring framework based on SASS. | |
# See http://compass-style.org/ for more details. | |
# Store Compass/SASS files (by default) within 'app/stylesheets' | |
module CompassInitializer | |
def self.registered(app) | |
require 'sass/plugin/rack' | |
Compass.configuration do |config| | |
config.project_path = Padrino.root |
# themes/theme-name/app.rb | |
require 'rubygems' # Can't leave < 1.9.2 hanging... | |
require 'compass' | |
require 'sinatra' | |
require 'haml' | |
module Nesta | |
class App | |
configure do |