Skip to content

Instantly share code, notes, and snippets.

View Happy0's full-sized avatar

Gordon Martin Happy0

  • Glasgow, Scotland
View GitHub Profile
user happy0 users;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
main.js:
lichess.widget("friends", {
following_onlines: function(us) {
$('#friend_box').friends("set", us);
},
following_enters: function(name) {
$('#friend_box').friends('enters', name);
},
re.split("[,]*\s*[A-Z][.]\s", str)
name=None, authors=None, title=None, year=None, full_citation=None, abstract=None,
definitive_link=None, open_acess_link=None, related_studies=None, main_results=None,
related_fundamental_issues=None, related_policies=None, disciplinary_classifications=None,
data_description=None, data_time_period=None, data_type=None, collection_methods=None, analysis_methods=None,
industries=None, countries=None, is_cross_country=None, is_comparative=None, is_gov_report=None, is_lit_review=None, funders=None
https://github.com/ornicar/lila/blob/master/modules/fishnet/src/main/Client.scala#L5-L11
@app.route('/blah')
def blah():
with open('all_data.txt') as data_file:
data = json.load(data_file)
return jsonify(data)
SELECT
`p`.`page_id` AS "page_id",
`p`.`page_title` AS "page_title",
`r`.`rev_text_id` AS "revision_id",
`t`.`old_id` AS "text_id",
`t`.`old_text`
FROM
page p
INNER JOIN `revision` r
ON `p`.`page_id` = `r`.`rev_page`
.
├── cache
│   ├── antlr
│   │   └── antlr
│   │   ├── ivy-2.7.7.xml
│   │   ├── ivy-2.7.7.xml.original
│   │   ├── ivydata-2.7.7.properties
│   │   └── jars
│   │   └── antlr-2.7.7.jar
│   ├── aopalliance
vagrant@vagrant:/vagrant$ sbt run -Dhttp.port=9663
[info] Loading project definition from /vagrant/project
[info] Set current project to lila (in build file:/vagrant/)
MessageCompiler took 236ms
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9663
(Server started, use Ctrl+D to stop and go back to the console...)
[info] p.c.s.NettyServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9663
(Server started, use Ctrl+D to stop and go back to the console...)
MessageCompiler took 167ms
[info] Compiling 94 Scala sources to /vagrant/target/scala-2.11/classes...
MessageCompiler took 191ms
[info] a.event.slf4j.Slf4jLogger - Slf4jLogger started
[info] boot - Preloading modules
[info] boot - 62ms db