This file contains 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
# Majority of this solution was written and posted here: | |
# http://matharvard.ca/posts/2011/aug/22/contact-form-in-rails-3 | |
# http://railscasts.com/episodes/206-action-mailer-in-rails-3 | |
# config/initializers/smtp_settings.rb | |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, |
This file contains 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
#!/usr/bin/env python | |
# An example of decoding/encoding datetime values in JSON data in Python. | |
# Code adapted from: http://broadcast.oreilly.com/2009/05/pymotw-json.html | |
# Copyright (c) 2023, Abhinav Upadhyay | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |
This file contains 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
// Grid shortcuts | |
// use with https://github.com/anjlab/bootstrap-rails | |
// | |
// Columns for phones | |
// - columns: .x[1-12] | |
// For small devices (tablets and small desktops) | |
// - columns: .s[1-12] | |
// - offsets: .so[0-11] | |
// - pushes: .sr[0-11] | |
// - pulls: .sl[0-11] |
This file contains 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
#!/bin/bash | |
#============================================================================== | |
# An install script of GVim in Ubuntu/Debian | |
#============================================================================== | |
echo "Installing required packages ..." | |
sudo apt-get install -yq build-essential curl | |
sudo apt-get install -yq \ | |
libncurses5-dev \ | |
libbonoboui2-dev \ |