Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 144, in __call__
return self.app(environ, start_response)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
<html>
<body>
<script src="script.js"></script>
<center>
<canvas id="canvas" style="border: 1px solid black;" width="640" height="640"></canvas>
</center>
</body>
</html>
(define (unify a b)
(cond ((and (pair? a)
(pair? b)) (cons (unify (car a) (car b))
(unify (cdr a) (cdr b))))
((symbol? a) b) ; here i just return b, because a symbol matches anything. a more complex system would have a third argument
; , the environment, that tracks existing bindings for a, and prevents conflicts. then, instead of returning b
; we could update the environment with the binding for a = b, or issue a failure (in kanren language, #u)
((eq? a b) b) ; a and b trivially unify without updating any bindings. here I just return their mutual value
#!/usr/bin/env sh
xcode-select --install
brew unlink libxml2
brew unlink libxslt
brew install libxml2
brew install libxslt
brew link libxml2 --force
brew link libxslt --force
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2/libxml/ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml
env PATH=PATH:/Library/PostgreSQL/9.4/bin CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2 CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments LDFLAGS=" -L/usr/local/opt/openssl/lib -L$PREFIX/lib $LDFLAGS" CFLAGS=" -I/usr/local/opt/openssl/include -I/usr/include -I$PREFIX/include $CFLAGS" pip install -r requirements.txt -I --force-reinstall --global-option=build_ext --global-option="-L/Library/PostgreSQL/9.4/lib" --global-option=build_ext --global-option="-I/Library/PostgreSQL/9.4/include" --user
Sichuan Food:
Dainty Sichuan Food: mostly close to the real traditional Sichuan Food 8.0
By the way, Dainty Sichuan Food is an brand like China Bar
(which open by Malaysian and not very good 6.0)
it has a few branches all of them are good sichuan food.
china chilli: biggest competitor of Dainty Sichuan Food second choice of
the first one.
Traceback (most recent call last):
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 148, in __call__
return self.app(environ, start_response)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/dbc/projects/grace/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
>>> import backend.views
>>> from backend.models.db import db
>>> import backend.models.all
>>> from backend.models.users import Users
>>> Users() in Users.query
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: argument of type 'BaseQuery' is not iterable
saved_println = println;
class WeirdClass {
class func println(string:String) {
saved_println("---\(string)---")
// The above line will call itself i.e.
// `WeirdClass.println(string:String)`
// instead of system's println
$ fc-list
/usr/share/fonts/TTF/Inika-Regular.ttf: Inika:style=Regular
/usr/share/fonts/misc/ter-122n.pcf.gz: xos4 Terminus:style=Regular
/usr/share/fonts/TTF/Martel-DemiBold.ttf: Martel,Martel DemiBold:style=DemiBold,Regular
/usr/share/fonts/adobe-source-han-sans/SourceHanSans-Bold.ttc: Source Han Sans HW TC,思源黑體 HW,思源黑體 HW Bold,Source Han Sans HW TC Bold:style=Bold,Regular
/usr/share/fonts/TTF/Merriweather-Black.ttf: Merriweather,Merriweather Black:style=Black,Regular
/usr/share/fonts/TTF/AnonymousPro-Italic.ttf: Anonymous Pro:style=Italic
/usr/share/fonts/TTF/TenorSans-Regular.ttf: Tenor Sans:style=Regular
/usr/share/fonts/TTF/AksaraBaliGalang-Regular.ttf: Aksara Bali Galang:style=Regular