- Download PHP542.dmg and open it.
- Copy
PHP5folder into/Applications.
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
| ALTER TABLE changeset_comments RENAME TO changeset_comments_old; | |
| CREATE TABLE changeset_comments ( | |
| comment_id INTEGER NOT NULL, | |
| repo_id INTEGER NOT NULL, | |
| revision VARCHAR(40), | |
| pull_request_id INTEGER, | |
| line_no VARCHAR(10), | |
| f_path VARCHAR(1000), | |
| user_id INTEGER NOT NULL, |
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
| - Install xhtml2pdf (former "pisa"). | |
| http://www.xhtml2pdf.com/ | |
| - Install Takao Font (TakaoPGothic.ttf). | |
| https://launchpad.net/takao-fonts/ | |
| - Modify conf.py as below. | |
| - Modify Makefile as below. |
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
| [core] | |
| excludesfile = ~/.gitignore | |
| pager = cat | |
| [color] | |
| ui = true | |
| branch = auto | |
| diff = auto | |
| interactive = auto | |
| status = auto | |
| [diff] |
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
| from pyramid.config import Configurator | |
| # from pyramid.view import view_config | |
| from .conditional_renderer import view_config | |
| """ | |
| @view_config(route_name="foo", renderer="app1:foo.mako") | |
| def foo(request): | |
| if "success" in request.GET: | |
| return {"message": "success"} |
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
| fizzbuzz x | |
| | (mod x 15 == 0) = "FizzBuzz" | |
| | (mod x 3 == 0) = "Fizz" | |
| | (mod x 5 == 0) = "Buzz" | |
| | otherwise = show x | |
| main = print $ take 100 $ map fizzbuzz [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
| #!/usr/bin/python3 | |
| def primes(): | |
| with open("primes1.txt") as f: | |
| f.readline() | |
| f.readline() | |
| for line in f: | |
| for num in line.strip().split(): | |
| yield int(num) |
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
| #!/usr/bin/python3 | |
| import os | |
| import sys | |
| import re | |
| import itertools | |
| import base64 | |
| template = '''\ | |
| #!/usr/bin/python3 |
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
| function A(p) { | |
| var obj = function() { | |
| return A(obj); | |
| }; | |
| obj.p = p; | |
| return obj; | |
| }; | |
| console.log(A()); | |
| console.log(A()()); |
I installed xubuntu, then I got xubuntu background while booting my Ubuntu PC. I can recover the default background in the following steps.
$ sudo update-alternatives --config default.plymouth $ sudo update-alternatives --config text.plymouth $ sudo update-initramfs -u
http://askubuntu.com/questions/122081/how-to-restore-plymouth-default-theme