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
{ | |
"cmd": ["g++", "-Wall", "-Wextra", "${file}", "-o", "${file_path}/${file_base_name}", | |
"-I/usr/local/Cellar/opencv/2.4.9/include/opencv", | |
"-I/usr/local/Cellar/opencv/2.4.9/include", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_calib3d.2.4.9.dylib", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_contrib.2.4.dylib", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_core.2.4.9.dylib", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_features2d.2.4.9.dylib", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_flann.2.4.9.dylib", | |
"/usr/local/Cellar/opencv/2.4.9/lib/libopencv_gpu.2.4.9.dylib", |
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
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile '~/.gitignore_global' | |
*.rbc | |
capybara-*.html | |
.rspec | |
/log |
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
web: node index.js |
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
var express = require('express'); | |
var app = express(); | |
app.set('port', (process.env.PORT || 5000)); | |
app.listen(app.get('port'), function() { | |
console.log("Node app is running on port:" + app.get('port')) | |
}) |
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
//put in root view of navigation controller | |
self.navigationController.interactivePopGestureRecognizer.delegate = (id<UIGestureRecognizerDelegate>)self; | |
[self.navigationController.interactivePopGestureRecognizer setEnabled:YES]; |
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
ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock |
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
#Slight modification from https://github.com/tkareine/knights_tour | |
#To generate solution for http://adityatj.github.io/knight/ | |
#modified by soulchild | |
#original by tkareine (https://github.com/tkareine/knights_tour) | |
class KnightTour | |
def initialize(board_size_array, start_pos_array, forbidden_block_array = []) | |
@board_size = board_size_array |
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
# MySQL. Versions 5.0+ are recommended. | |
# | |
# Install the MYSQL driver | |
# gem install mysql2 | |
# | |
# Ensure the MySQL gem is defined in your Gemfile | |
# gem 'mysql2' | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html |
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
# Fucking mysql gem | |
gem 'mysql2', '~> 0.3.18' |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
location / { | |
try_files $uri $uri/ =404; | |
} |
OlderNewer