A set of heading buttons with some relief with shadow 3d effect
A Pen by Antonio Garcia on CodePen.
<?php | |
$ROUTES = [ | |
'GET' => [ | |
'home' => 'Home::index', | |
'ping' => 'Session::getPing', | |
], | |
'POST' => [ | |
'ping' => 'Session::postPing', | |
] |
/* <div data-bind="blockUI: IsLoading">...</div> */ | |
ko.bindingHandlers.blockUI = { | |
update: function (element, valueAccessor, allBindingsAccessor) { | |
var value = ko.utils.unwrapObservable(valueAccessor()); | |
if (value) | |
$(element).block(); | |
else | |
$(element).unblock(); | |
} | |
}; |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
#alias ll='ls -alF' | |
alias ls='ls -1G' | |
alias ll='ls -lF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias ltr="ls -R | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'" |
~ brew install mongodb | |
=> Caveats | |
To have launchd start mongodb now and restart at login: | |
brew services start mongodb | |
Or, if you don't want/need a background service you can just run: | |
mongod --config /usr/local/etc/mongod.conf | |
==> Summary | |
🍺 /usr/local/Cellar/mongodb/3.2.8 |
class Item: | |
def __init__(self, **args): | |
self.__dict__.update(args) | |
i = Item(foo=1, bar=2) | |
print i.bar | |
# 2 | |
print i.foo | |
# 1 |
//....add this in app/assets/javascript/active_admin.js | |
$(function(){ | |
// CONFIGURE PANELS COLLAPSER | |
$(".panel[data-panel]").each(function(){ | |
var $this = $(this); | |
var $a = $("<a href='javascript:void(null)'>").on("click",function(event){ | |
$(this).closest(".panel").find(".panel_contents").each(function(){ | |
$(this).slideToggle(); | |
}); | |
$(this).closest("h3").each(function(){ |
# config/initializer/active_admin.rb | |
ActiveAdmin.setup do |config| | |
# == Site Title | |
# | |
# Set the title that is displayed on the main layout | |
# for each of the active admin pages. | |
... | |
end | |
ActiveAdmin::FormBuilder.class_eval do |