Skip to content

Instantly share code, notes, and snippets.

View slenderock's full-sized avatar
:octocat:
See You Space Cowboy...

Serhii Ovcharenko slenderock

:octocat:
See You Space Cowboy...
View GitHub Profile

Existing forms API:

Directives:

  • ngControl
  • ngFormControl
  • ngModel
  • ngFormModel
  • ngControlGroup
@wbotelhos
wbotelhos / libreadline_6_not_found.sh
Created November 29, 2016 20:42
Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
@Kris-Simpson
Kris-Simpson / .bash_profile
Last active April 9, 2019 14:01 — forked from Surzhko/.bash_profile
colorized git ps1
#...
source ~/.git-prompt.sh
__git_color_ps1 ()
{
if [ -n "$(__git_ps1)" ]; then
local IS_CLEAN=`git status | grep -i "working .* clean"`;
if [ -z "$IS_CLEAN" ]; then
echo -e "\e[1;31m"
else
@micahroberson
micahroberson / estimate.rb
Created July 13, 2013 00:35
Generate and save a pdf to S3 with wicked_pdf and paperclip
# Main reference was lascarides' post at http://stackoverflow.com/questions/14743447/getting-pdf-from-wickedpdf-for-attachment-via-carrierwave
# estimate.rb
# ...
has_attached_file :pdf,
storage: :s3,
s3_credentials: {
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
bucket: ENV['AWS_BUCKET']
@galulex
galulex / install.md
Last active February 28, 2021 14:15
Ruby On Rails Ubuntu 18.04 install

Developer libs

mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...

sudo apt-get install libxslt1-dev libxml2-dev build-essential patch libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs rar

Ruby

sudo apt-add-repository ppa:brightbox/ruby-ng

sudo apt-get update