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
{ | |
"forms": [ | |
{ | |
"title": "", | |
"pages": [ | |
{ | |
"title": "", | |
"sections": [ | |
{ | |
"title":"" |
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 indexOf(list, sublist) { | |
var counter = 0, | |
index = -1, | |
sub = sublist; | |
do { | |
if (list.val === sub.val) { | |
if (index === -1) { | |
index = counter; | |
} |
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
const regexp = /(.)\1*/g; | |
function looknsay(input) { | |
return input.replace(regexp, function(match, capture) { | |
return match.length.toString() + capture; | |
}); | |
} | |
function runner(input, interations) { | |
for (var i = interations; i > 0; i--) { | |
input = looknsay(input); |
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 INR(input) { | |
var a, b, c, d, e, output, outputA, outputB, outputC, outputD, outputE; | |
var ones = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']; | |
if (input === 0) { // Zero | |
output = "Zero"; |
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
public class ProteusHelper { | |
public static void register(LayoutBuilder builder) { | |
LayoutHandler webViewParser = builder.getHandler("WebView"); | |
webViewParser.addHandler(new Attributes.Attribute("disableCache"), new StringAttributeProcessor<WebView>() { | |
@Override | |
public void handle(String attributeKey, String attributeValue, WebView view) { | |
boolean bool = ParseHelper.parseBoolean(attributeValue); |
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
public class ProteusDrawableGlideExample { | |
private BitmapLoader loader = new BitmapLoader() { | |
@Override | |
public Future < Bitmap > getBitmap(String imageUrl, View view) { | |
return null; | |
} | |
@Override |
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
find . -name "*.zip" | while read filename; do unzip -o -d "`dirname "$filename"`" "$filename"; done; |
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 Math = {}; | |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/E | |
Math.E = 2.718; | |
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max | |
Math.max = function (x, y) { | |
if (x > y) { | |
return x; | |
} else { |
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 () { | |
function toWords() { | |
var ones, | |
tens, | |
hundred, | |
output, | |
numString, | |
denominations, | |
groups, | |
number = this; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angular</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.min.js"></script> | |
</head> | |
<body> |