Skip to content

Instantly share code, notes, and snippets.

@cinek19
cinek19 / gist:75006f42602b193599dc
Created October 22, 2015 12:59
Conversor from € to pesetas
/**
* Created by efren on 22/10/2015.
*/
$('input[id=eur]').change(function() {
document.getElementById("pts").value = Math.ceil($("#eur").val()*166.66);
});
$('input[id=pts]').change(function() {
document.getElementById("eur").value = parseFloat($("#pts").val()/166.66).toFixed(2);
});
License Key PhpStorm 8
User Name : EMBRACE
===== LICENSE BEGIN =====
43136-12042010
00002UsvSON704l"dILe1PVx3y4"B3
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh
gd1BebYc5U"6OxDbVsALB4Eb10PW8"
===== LICENSE END =====
@cinek19
cinek19 / angularjs
Created May 5, 2015 10:06
angularjs interpretes en template blade
var app = angular.module('todoApp', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
});
public void onReceive(Context context, Intent intent) {
debugIntent(intent, "grokkingandroid");
}
private void debugIntent(Intent intent, String tag) {
Log.v(tag, "action: " + intent.getAction());
Log.v(tag, "component: " + intent.getComponent());
Bundle extras = intent.getExtras();
if (extras != null) {
for (String key: extras.keySet()) {