This file contains hidden or 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
let isObject = o => toString.call(o) === '[object Object]' | |
let consume = i => { | |
let iterator = i && i.keys; | |
if (!iterator) return; | |
let arr = []; | |
while (res = iterator.next(), !res.isDone) arr.push(res.value); | |
return res; | |
} |
This file contains hidden or 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
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09 for most of these projects, and the "last update" field has not been kept up to date since then. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |
This file contains hidden or 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
// This software is released under the DBAD (Dont be a duche) license. | |
// If you improve this code in any way, you must release your modifications publicly. | |
#include "Map.h" | |
#include <string> | |
#include <vector> | |
#include <iostream> | |
#define DEPTH 1 |
This file contains hidden or 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
# Models | |
class Agent < ActiveRecord::Base | |
belongs_to :manager | |
belongs_to :site | |
belongs_to :workgroup | |
named_scope :of_workgroup, lambda { |workgroup| {:conditions => ['workgroup_id = ?', @workgroup.id] } | |
end | |
This file contains hidden or 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
namespace 'rails' do | |
desc 'Remove rails tmp dirs' | |
task 'rm_tmp_dirs' do | |
["./tmp/pids", "./tmp/sessions", "./tmp/sockets", "./tmp/cache"].each do |f| | |
system("rmdir ./#{f}") | |
end | |
end | |
end | |
namespace 'git' do |