View strong_methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rake task to help migrating a rails 3 app to rails 4 strong_parameters. | |
# The task generates source code for helper methods for each model class | |
# to 'permit' the attributes. | |
# the generated methods are intended as starting point to copy&paste in the controller | |
# and than edit the permitted attributs. | |
# Some common names of non-editable attributes are already filtered, | |
# like 'id', 'password' or 'created_at'. | |
# The output is written to stdout so you can pipe it into a file | |
# | |
# Dependencies: |
View filab_strategy.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'omniauth-oauth2' | |
# this OmniAuth-Strategy uses the Keyrock Identity Management | |
# see http://catalogue.fiware.org/enablers/identity-management-keyrock | |
# The server url is from the public FIWARE Lab instance. | |
module OmniAuth | |
module Strategies | |
class FilabStrategy < OmniAuth::Strategies::OAuth2 | |
option :name, "filab" | |
option :client_options, { |
View dependencygraph.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
# | |
# construct dependency graph for C/C++ projects. | |
# input is directory with c and h files. | |
# output as plain text or as dot file for processing with graphviz | |
# | |
# Copyright (c) 2004-2015 by Karsten Meier, http://meier-online.com | |
# This program is free software. | |
# You can distribute/modify this program under the terms of | |
# the GNU General Public License version as published by |