Skip to content

Instantly share code, notes, and snippets.

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.
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
#!/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
(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
<html>
<body>
<script src="script.js"></script>
<center>
<canvas id="canvas" style="border: 1px solid black;" width="640" height="640"></canvas>
</center>
</body>
</html>
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
502 API Error
API Error
We received an error from the API server. The server may be overloaded, there may be a bug in the application, or there might have been a mistake in your request. The webmaster has been notified.
The message from the server was:
invalide discount data
File "/home/dbc/projects/grace/backend/views/invoices.py", line 31, in post
on_success=render_pdf, initial=cost)
File "/home/dbc/projects/grace/backend/views/util.py", line 183, in create_one
entity.fill_from_formdata(initial(flask.request))
File "/home/dbc/projects/grace/backend/views/invoices.py", line 66, in cost
id = int(request.values['job-' + str(index) + '-id'])
ValueError: invalid literal for int() with base 10: 'shipping'
import qualified Haste.Graphics.Canvas as C
import qualified Haste as H
indices :: [(Int, Int)]
indices = [(i, j) | i <- [0 .. 2], j <- [0 .. 2]]
strike :: C.Point -> Double -> C.Picture ()
strike (x, y) width =
let margin = 0.1 * width
farSide = width - margin
// ==ClosureCompiler==
// @compilation_level WHITESPACE_ONLY
// @output_file_name default.js
// @formatting pretty_print
// ==/ClosureCompiler==
[1,
[1,
[1,
[1,