# ~/.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"
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
{есть алгоритм:} | |
const | |
N = 20; | |
var | |
n, i, j: integer; | |
a: array[1..N][1..N] of integer; | |
s: longint; |
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
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
#include <algorithm> | |
#include <cstdlib> | |
#include <ctime> | |
using namespace std; | |
double pi = acos(-1.); |
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
#include <cstdio> | |
//#include "out.txt" | |
long long H1[] = { | |
1LL, | |
2LL, | |
4LL, | |
6LL, | |
16LL, | |
12LL, |
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
http://sourceforge.net/projects/ath9k-htc/files/ath9k_htc-installer/ |
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
http://www.2shared.com/file/D3dVFI9N/ar9271.html |
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
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 |
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
# 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 |
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
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"], |
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
// snippet | |
// includes | |
#include <cstdio> | |
#include <string> | |
#include <algorithm> | |
#include <cmath> | |
#include <map> | |
#include <cstring> | |
#include <iostream> |
OlderNewer