This file contains 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
import java.util.ArrayList; | |
import java.util.List; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
public class JsonQueryEngine { | |
public static List<String> getExpressionValues(String expression, String propertySeperator, JSONObject jsonObject) throws Exception{ | |
String[] nodesList = expression.split(propertySeperator);//Splitting each property in expression |
This file contains 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
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |
This file contains 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
# Copyright 2013 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
"""Script that is used by PRESUBMIT.py to run style checks on Java files.""" | |
import os | |
import subprocess | |
import xml.dom.minidom | |
CHROMIUM_SRC = os.path.normpath( | |
os.path.join(os.path.dirname(__file__), | |
os.pardir, os.pardir, os.pardir)) |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
See installation instructions: https://sites.google.com/a/chromium.org/dev/checkstyle | |
--> | |
<module name="Checker"> | |
<property name="severity" value="warning"/> | |
<property name="charset" value="UTF-8"/> | |
<module name="TreeWalker"> |
This file contains 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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | |
<!-- | |
Checkstyle-Configuration: Android checkstyle by Enea | |
Description: none | |
--> |
This file contains 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() { | |
var root = this; | |
var _ = function() { | |
}; | |
// Export the object for **Node.js**, with | |
// backwards-compatibility for the old `require()` API. If we're in |
This file contains 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
var inherits = function (ctor, superCtor) { | |
ctor.super_ = superCtor; | |
ctor.prototype = Object.create(superCtor.prototype, { | |
constructor: { | |
value: ctor, | |
enumerable: false | |
} | |
}); | |
}; |
This file contains 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
var util = require("util"); | |
var events = require("events"); | |
function MyStream() { | |
events.EventEmitter.call(this); | |
} | |
util.inherits(MyStream, events.EventEmitter); | |
MyStream.prototype.write = function(data) { |
This file contains 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
var fs = require('fs'); | |
var files = ['a.txt', 'b.txt', 'c.txt']; | |
for (var i = 0; i < files.length; i++) { | |
fs.readFile(files[i], 'utf-8', function(err, contents) { | |
console.log(files[i] + ': ' + contents); | |
}); | |
} |
This file contains 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 fab(n) { | |
if (n < 3) { | |
return 1; | |
} | |
var p1=1, p2=1, p; | |
function _fab(m) { | |
if (m < n) { | |
p = p1 + p2; | |
p1 = p2; | |
p2 = p; |
NewerOlder