Skip to content

Instantly share code, notes, and snippets.

View dzhioev's full-sized avatar

Pavel Sergeev dzhioev

View GitHub Profile
"""
Configuration file for YCM plugin (https://github.com/Valloric/YouCompleteMe)
"""
from os import path
import json
import re
ROOT = path.dirname(path.realpath(__file__))
COMPILATION_DB = path.join(ROOT, 'build/compile_commands.json')
<dom-module name="x-foo">
<template>
<span>{{S.someTranslatedString}}</span>
</template>
</dom-module>
...
Polymer({
is: 'x-foo',
diff --git a/third_party/tvcm/tvcm/generate.py b/third_party/tvcm/tvcm/generate.py
index acf32fc..160f02f 100644
--- a/third_party/tvcm/tvcm/generate.py
+++ b/third_party/tvcm/tvcm/generate.py
@@ -68,18 +68,6 @@ def GenerateJSToFile(f,
f.write(js_warning_message)
f.write('\n')
-
- loader = load_sequence[0].loader
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
/*************
* lasers.js *
*************
*
* Time to unleash the killer lasers! Each laser will kill you
* unless you have the appropriate color. Too bad you can't
* see which color corresponds to which laser!
*/
function getRandomInt(min, max) {
/**************************
* exceptionalCrossing.js *
**************************
*
* Sorry, old friend, but I'm afraid I can't share
* co-authorship on this paper. You've done a very
* good job getting this Algorithm for me. The bit
* with the keys was especially clever! I wouldn't
* have thought of it myself. But then, of course,
* that's why you were here in the first place.
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
/********************
* crispsContest.js *
********************
*
* The Algorithm is almost in our grasp!
* At long last, we will definitively establish
* that 3SAT is solvable in polynomial time. It's
* been a long, strange journey, but it will all be
* worth it.
*
/*
* robotMaze.js
*
* The blue key is inside a labyrinth, and extracting
* it will not be easy.
*
* It's a good thing that you're a AI expert, or
* we would have to leave empty-handed.
*/