Skip to content

Instantly share code, notes, and snippets.

View pazaricha's full-sized avatar
😇

Paz Aricha pazaricha

😇
View GitHub Profile
@pazaricha
pazaricha / _new.html.haml
Created June 14, 2012 15:34
beforeSend - doesn't work at all
=simple_form_for(@transaction, :remote => true ) do |f|
=f.error_notification
=f.input :description
=f.input :amount
=f.collection_radio_buttons :kind, [['expense', 'Expense'] ,['income', 'Income']], :first, :last
=f.button :submit, "Create New Transaction", :class => "btn btn-primary btn-large", :name => "create_transaction"
@pazaricha
pazaricha / gist:3848384
Created October 7, 2012 13:19 — forked from Gregg/gist:968534
Code School Screencasting Framework

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@pazaricha
pazaricha / deploy.rake
Last active December 17, 2015 18:38 — forked from njvitto/deploy.rake
#Deploy and rollback on Heroku in staging and production
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push_staging', 'deploy:restart', 'deploy:tag']
task :deploy_production => ['deploy:set_production_app', 'deploy:push_production', 'deploy:restart', 'deploy:tag']
namespace :deploy do
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU'
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU'
task :staging_migrations => [:set_staging_app, :push_staging, :off, :migrate, :restart, :on, :tag]
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on]
$("#cf7-submit-button").on("click", function(e) {
e.preventDefault();
e.stopPropagation();
$("#your-cf7-form").submit();
});
// Album button colors
$album-buttons-colors: #1F69E0, #4DB811, #FF9200, #E6157D, #14BABA;
@for $i from 1 through length($album-buttons-colors) {
$color: nth($album-buttons-colors, $i);
.album-button-#{$i} {
color: #FFF;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: darken($color, 10%) darken($color, 15%) darken($color, 25%);
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
{
"erb_verify_command": "erb -xT - {file_name} | ruby -c",
"ruby_verify_command": "ruby -c {file_name}",
"run_ruby_unit_command": "ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
"run_cucumber_command": "cucumber {relative_path}",
"run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
2014-09-09T09:55:10.258063+00:00 app[web.1]: ** [NewRelic][09/09/14 09:55:10 +0000 f9e9fc6a-315e-43a2-afc0-1a5ffb2df349 (14)] DEBUG : EnvironmentReport failed to retrieve value for "Plugin List": undefined method `plugins' for #<Rails::Application::Configuration:0x007f4c5cfb7840>
2014-09-09T09:55:10.261508+00:00 app[web.1]: ** [NewRelic][09/09/14 09:55:10 +0000 f9e9fc6a-315e-43a2-afc0-1a5ffb2df349 (14)] DEBUG : EnvironmentReport failed to retrieve value for "Java VM version": uninitialized constant NewRelic::EnvironmentReport::ENV_JAVA
2014-09-09T09:55:10.263110+00:00 app[web.1]: ** [NewRelic][09/09/14 09:55:10 +0000 f9e9fc6a-315e-43a2-afc0-1a5ffb2df349 (14)] DEBUG : Registered cpu for harvest time sampling.
2014-09-09T09:55:10.264350+00:00 app[web.1]: ** [NewRelic][09/09/14 09:55:10 +0000 f9e9fc6a-315e-43a2-afc0-1a5ffb2df349 (14)] DEBUG : Registered vm for harvest time sampling.
2014-09-09T09:55:10.267804+00:00 app[web.1]: ** [NewRelic][09/09/14 09:55:10 +0000 f9e9fc6a-315e-43a2-afc0-1a5ffb2df349 (14)] DEBU
2014-09-10T14:33:07.936647+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:07 +0000 796b66b8-1b5d-443c-9fcc-06797dcddc31 (8)] DEBUG : Sampled 1 / 1 (100.0 %) requests this cycle, 1 / 1 (100.0 %) since startup
2014-09-10T14:33:08.027552+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:08 +0000 796b66b8-1b5d-443c-9fcc-06797dcddc31 (8)] DEBUG : No thread profiles with data found to send.
2014-09-10T14:33:08.027611+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:08 +0000 796b66b8-1b5d-443c-9fcc-06797dcddc31 (8)] DEBUG : Closing shared TCP connection to collector-114.newrelic.com:443
2014-09-10T14:33:07.936281+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:07 +0000 796b66b8-1b5d-443c-9fcc-06797dcddc31 (8)] DEBUG : Uncompressed content returned
2014-09-10T14:33:07.980660+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:07 +0000 796b66b8-1b5d-443c-9fcc-06797dcddc31 (8)] DEBUG : Uncompressed content returned
2014-09-10T14:33:08.027050+00:00 app[web.2]: ** [NewRelic][09/10/14 14:33:08 +0000 796b66b8-1b5d-443c-9fcc-06797dcdd
@pazaricha
pazaricha / gist:471aa6f5e875c61702cf
Created December 31, 2014 10:14
Can't sync this to phrase app as it disappear after I pull it back...
he:
date:
abbr_day_names:
- א
- ב
- ג
- ד
- ה
- ו
- ש
@pazaricha
pazaricha / SassMeister-input-HTML.html
Created January 20, 2015 22:27
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<header>