# ~/.zshrc or ~/.bashrc
# allows you to remigrate your database to state of just changed or merged branch
alias nuke="rake db:drop db:create db:migrate db:test:prepare setup_sample_data"
View proc_func_problemA.pas
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
{есть алгоритм:} | |
const | |
N = 20; | |
var | |
n, i, j: integer; | |
a: array[1..N][1..N] of integer; | |
s: longint; |
View 1793.cpp
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
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace std; | |
double pi = acos(-1.); |
View 1748_3.cpp
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
#include <cstdio> | |
//#include "out.txt" | |
long long H1[] = { | |
1LL, | |
2LL, | |
4LL, | |
6LL, | |
16LL, | |
12LL, |
View link for ath9k htc driver ubuntu lucid
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
http://sourceforge.net/projects/ath9k-htc/files/ath9k_htc-installer/ |
View link for firmware atheros
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
http://www.2shared.com/file/D3dVFI9N/ar9271.html |
View gist:5925542
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
RAILS_ENV=production rake db:setup | |
# produces the error below.....hmmm.....it's a no-worky | |
psql:/yourprojectpath/yourproject/db/structure.sql:29: ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/hstore.control": No such file or directory | |
# hstore postgresql extension needs to be installed, so.... | |
sudo apt-get install postgresql-contrib | |
# now your extension should be available to enable so log in with psql | |
psql -d yourproject_production -U yourdbuser -W |
View rails_tip_1.rb
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
# Tip 1 | |
# Problem: Models are not loaded in migrations when config.threadsafe! is set | |
# Why: The threadsafe option in production doesn't load the dependencies | |
# Solution: Configure it to load dependencies with this option in your production.rb just after config.threadsafe! | |
# config/environments/production.rb | |
config.threadsafe! | |
config.dependency_loading = true |
View Ruby.sublime-settings
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
Show hidden characters
{ | |
"font_size": 7.1, | |
"rulers": [79, 105], | |
"spell_check": true, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"highlight_line": true, | |
"line_padding_top": -1, | |
"line_padding_bottom": -2, | |
"indent_guide_options": ["draw_active"], |
View rails_tricks.md
View snippet.cpp
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
// snippet | |
// includes | |
#include <cstdio> | |
#include <string> | |
#include <algorithm> | |
#include <cmath> | |
#include <map> | |
#include <cstring> | |
#include <iostream> |
OlderNewer