brew search mysql
brew install [email protected]
brew link [email protected] --force --overwrite
#!/bin/sh | |
mkdir -p ~/development/src | |
cd ~/development/src | |
if [ -d ImageMagickInstall ] | |
then | |
# remove old ImageMagickInstall directory if it exists | |
rm -rf ImageMagickInstall | |
fi | |
mkdir ImageMagickInstall | |
cd ImageMagickInstall |
__or_fn = lambda do |*scopes| | |
where = [] | |
joins = [] | |
includes = [] | |
# for some reason, flatten is actually executing the scope | |
scopes = scopes[0] if scopes.size == 1 | |
scopes.each do |s| | |
w = [] | |
s.where_clauses.each do |where_clause| |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
user ||= User.new # guest user | |
if user.role? :super_admin | |
can :manage, :all | |
else |
[2011-09-09 12:59:08] make | |
/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c array.c | |
/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c bignum.c | |
bignum.c: In function ‘rb_big_unpack’: | |
bignum.c:314: warning: right shift count >= width of type | |
/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c class.c | |
/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c compar.c | |
/usr/bin/gcc-4.2 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -fno-common -pipe -fno-common -DRUBY_EXPORT -I. -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dir.c | |
/usr/bin/gcc-4.2 -a |
## gmaps4rails v1 | |
## controller | |
@json = @shops.to_gmaps4rails do |shop, marker| | |
marker.infowindow render_to_string(partial: "/shops/map_info_window", locals: { object: shop}) | |
icon_name = "wl_sm_icon" | |
unless shop.shop_group.nil? | |
if (shop.shop_group.name.downcase =~ /pen/) != nil |
server { | |
listen 80; | |
server_name domain1.ca; | |
return 301 https://www.domain1.com$request_uri; | |
} | |
server { | |
listen 80; | |
server_name domain1.com; | |
return 301 https://www.domain1.com$request_uri; |
# app/jobs/sample_job.rb | |
class SampleJob < ActiveJob::Base | |
queue_as :maintenance | |
attr_accessor :options | |
def enqueue(options = {}) | |
self.options = options | |
super | |
end |
brew search mysql
brew install [email protected]
brew link [email protected] --force --overwrite
import { Controller } from "stimulus" | |
import $ from 'jquery'; | |
require("select2/dist/css/select2") | |
require("select2-bootstrap-theme/dist/select2-bootstrap") | |
import Select2 from "select2" | |
export default class extends Controller { |
import { Controller } from "stimulus" | |
import $ from 'jquery'; | |
export default class extends Controller { | |
connect() { | |
console.log('connecting Filter controller'); | |
$("#subscriber-tags-select").on('select2:select', function () { |