Skip to content

Instantly share code, notes, and snippets.

@pr0t3us
pr0t3us / index.html
Created February 15, 2016 09:28
index.html
<script src="scripts/components/map/directives/tripDetailMap.js"></script>
@pr0t3us
pr0t3us / 0_reuse_code.js
Created February 15, 2016 08:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@pr0t3us
pr0t3us / waypoints.js
Created January 4, 2016 15:02
waypoints
getWaypoints: function() {
var i,
wps = [];
for (i = 0; i < this._waypoints.length; i++) {
wps.push(this._waypoints[i]);
}
return wps;
}
@pr0t3us
pr0t3us / gist:c2097228dd77f54aa811
Created November 13, 2015 14:22
wadi gradle error
This file has been truncated, but you can view the full file.
Started by user soleinicenco
Building remotely on android_builds_1 (android_build_servers) in workspace /backup/workspace/wadi-android-dev
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git@github.com:WadiInternet/kulfi.git # timeout=10
Fetching upstream changes from git@github.com:WadiInternet/kulfi.git
> git --version # timeout=10
using GIT_SSH to set credentials
> git -c core.askpass=true fetch --tags --progress git@github.com:WadiInternet/kulfi.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/development^{commit} # timeout=10
@pr0t3us
pr0t3us / project2.xmi
Created June 17, 2015 11:58
test UML project exported from Modelio
<?xml version="1.0" encoding="UTF-8"?><uml:Model xmlns:uml="http://www.omg.org/spec/UML/20110701" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmi:version="2.1" xmi:id="_0fHmABTcEeWFqYbu5uR6sg" name="project2">
<eAnnotations xmi:id="_0fHmARTcEeWFqYbu5uR6sg" source="Objing">
<contents xmi:type="uml:Property" xmi:id="_0fHmAhTcEeWFqYbu5uR6sg" name="exporterVersion">
<defaultValue xmi:type="uml:LiteralString" xmi:id="_0fHmAxTcEeWFqYbu5uR6sg" value="3.0.0"/>
</contents>
</eAnnotations>
<packagedElement xmi:type="uml:Class" xmi:id="_0fHmBBTcEeWFqYbu5uR6sg" name="route">
<ownedAttribute xmi:type="uml:Property" xmi:id="_0fHmBRTcEeWFqYbu5uR6sg" name="routeId" aggregation="composite"/>
<ownedAttribute xmi:type="uml:Property" xmi:id="_0fHmBhTcEeWFqYbu5uR6sg" name="name" aggregation="composite"/>
</packagedElement>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:page="urn:jsptagdir:/WEB-INF/tags/form" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<jsp:output omit-xml-declaration="yes"/>
<page:show id="ps_com_androidpositive_publictransportway_Calendar" object="${calendars}" path="/calendars" z="o393p5Smt9NSf70YsRY4HYFzG2A=">
<field:display field="monday" id="s_com_androidpositive_publictransportway_Calendar_monday" object="${calendars}" z="fBAdkIvySAMexyroSzyJJ6VLl1A="/>
<field:display field="tuesday" id="s_com_androidpositive_publictransportway_Calendar_tuesday" object="${calendars}" z="5Jsvya6KH929gG90JznXOY+64ss="/>
<field:display field="wednesday" id="s_com_androidpositive_publictransportway_Calendar_wednesday" object="${calendars}" z="pf66/pchooKHtBjWTrahJrqVtNU="/>
<field:display field="thursday" id="s_com_androidpositive_publictra
@pr0t3us
pr0t3us / PayTextWatcher
Created February 25, 2014 09:08
Custom formatter for value in different currency
import java.util.Locale;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
public class PayTextWatcher implements TextWatcher {
public static final String T = "PayTextWatcher";
private final EditText editText;