This file contains hidden or 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
| username: vagrant | |
| password: vagrant | |
| sudo apt-get update | |
| sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
| sudo aptitude install mysql-server mysql-client | |
| sudo nano /etc/mysql/my.cnf |
This file contains hidden or 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
| # Don't care if the mailer can't send | |
| config.action_mailer.raise_delivery_errors = false | |
| config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
| config.action_mailer.delivery_method = :smtp | |
| config.action_mailer.perform_deliveries = true | |
| config.action_mailer.raise_delivery_errors = false | |
| config.action_mailer.default :charset => "utf-8" | |
| config.action_mailer.smtp_settings = { | |
| address: "smtp.gmail.com", | |
| port: 587, |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Simple.Data; | |
| using PoS.Entities; |
This file contains hidden or 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
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var year = DateTime.Now.Year; |
This file contains hidden or 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
| myControl.KeyDown += (s, e) => | |
| { | |
| if (e.KeyCode == Keys.WHATEVER_KEY) | |
| Validate(); | |
| }; |
This file contains hidden or 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
| # capitalize each word of a string | |
| 'some string'.split(' ').map {|w| w.capitalize }.join(' ') |
This file contains hidden or 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
| #disqus_thread | |
| :javascript | |
| // put the short name you signed up with here | |
| var disqus_shortname = 'example'; | |
| var disqus_developer = #{ Rails.env == "production" ? '0' : '1' }; | |
| var disqus_title = "#{ title }"; | |
| var disqus_url = "#{ request.url }"; | |
| var disqus_identifier = "#{ request.fullpath }"; | |
| (function() { | |
| var dsq = document.createElement('script'); |
This file contains hidden or 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
| When starting a project that includes refinerycms-blog: | |
| $ rake refinery:override view=refinery/pages/* | |
| $ rake refinery:override view=layouts/* | |
| $ rake refinery:override view=refinery/blog/shared/* | |
| $ rake refinery:override view=refinery/blog/posts/* | |
| $ rake refinery:override view=refinery/* | |
| $ rake refinery:override controller=refinery/blog/* | |
| $ rake refinery:override controller=refinery/* |
This file contains hidden or 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
| ==Configuration== | |
| Ubuntu 12.04 LTS, precise | |
| ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux] | |
| Rails 3.2.13 | |
| --Prerequisites | |
| ***I have a Vagrant for my development environment (avoid this, this is transparent for you...) |
This file contains hidden or 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
| #Junk Files | |
| *.DS_Store | |
| [Tt]humbs.db | |
| #Visual Studio Files | |
| [Oo]bj | |
| [Bb]in | |
| [Dd]ebug | |
| [Bb]uild/ | |
| *.user |