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
import os | |
import sys | |
from flask import Flask, request, redirect, url_for, send_from_directory | |
from flask_sqlalchemy import SQLAlchemy | |
app = Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.abspath('user_info.db') | |
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # SQLALCHEMY_TRACK_MODIFICATIONS deprecated | |
app.config['SERVER_NAME'] = # NAME | |
app.config['SERVER_PORT'] = # 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
# go to your repository | |
cd my_project | |
# check your existing remote | |
git remote -v | |
# origin [email protected]:my_project.git (fetch) | |
# origin [email protected]:my_project.git (push) | |
# Add a new remote, a github.com private repository for example | |
# the --mirror flag is what's different from a simple new remote |
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 | |
dest_dir=bin | |
if [ ! -d $dest_dir ]; then | |
mkdir $dest_dir | |
fi | |
binary=$dest_dir/$3 | |
in_file=$dest_dir/$3".in" | |
case $1 in | |
"--cxx") |
I hereby claim:
- I am vinatorul on github.
- I am vinatorul (https://keybase.io/vinatorul) on keybase.
- I have a public key ASCL5BhrqJPb36da9LJwaf3GmGXNgGuGvC0MR9G_bDva_go
To claim this, I am signing this object:
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
@-moz-document url("https://twitter.com/"), url("https://twitter.com/i/notifications"), url-prefix("https://twitter.com/mentions"), url-prefix("https://twitter.com/i/moments"), url-prefix("https://twitter.com/settings") { | |
body{ | |
background-color: #191919 !important; | |
} | |
a { | |
color: #E0D28F !important; | |
} | |
} | |
@-moz-document url-prefix("https://twitter.com/intent") { |
Ubuntu 12.04 doesn't support SDL2.0
from "box" so here is a short instruction what to do, if you faced the same problem as me.
We will install SDL2.0
from sources.
First of all we need to install dependencies (same as for SDL1.2
) and mercurial
:
$ sudo apt-get build-dep libsdl1.2-dev
$ sudo apt-get install mercurial