[ Launch: Taller Jacathon d3.js ] 8e7f1af2e96ac0788240 by bluezio
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.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.RandomAccessFile; | |
/** | |
* Simple partial implementations of the <code>tail(1)</code> UNIX command. | |
* |
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
class A {} | |
class B extends A {} | |
class C {} | |
public class TestInstanceOf { | |
public static void main(String[] args) { | |
final B b = new B(); | |
final C c = new C(); | |
int i = 0, nA = 0; |
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
class Parent { | |
@Override | |
public String toString() { | |
return "Parent"; | |
} | |
} | |
class Child extends Parent { | |
@Override | |
public String toString() { |
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
/* | |
Simple example of a dropdown menu using HTML5 LocalStorage. | |
*/ | |
function create_dropdown(menu_id, category_title_class) { | |
var menu = document.getElementById(menu_id) | |
var ctitles = menu.getElementsByClassName('category_title') | |
for (var i = 0; i < ctitles.length; i++) { | |
var ctitle = ctitles[i] | |
apply_shown(ctitle, is_shown(ctitle)) |
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
#!/usr/bin/env python | |
# Simple script for finding and counting the color pages in a PDF | |
# Copyright (C) 2013-2019 Antonio Garcia-Dominguez | |
# Licensed under the GPLv3 | |
# | |
# This script is based on the following thread (thanks for the tip!): | |
# | |
# http://tex.stackexchange.com/questions/53493 | |
# |
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
#!/bin/bash | |
# SVN hook that checks that the message mentions an open ticket in a PostgreSQL-backed Redmine installation. | |
# Copyright (C) 2014 Antonio García Domínguez | |
# Licensed under the GPLv3. | |
## CONFIGURATION | |
SVNLOOK=/usr/bin/svnlook | |
PSQL=/usr/bin/psql |
[ Launch: Ejemplo Jacathon Streamgraph ] 0c9daf6053778d6ee0be by bluezio
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
// Number of an instances of a type | |
return %s.all.size; | |
// Instances of a type | |
return %s.all; | |
// Get the number of instances of an EDataType (unseeded) ////////////////////////// |
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
@thrift(javans="ecore2thrift.example") | |
@namespace(uri="http://github.com/ecore2thrift", prefix="") | |
package Blog; | |
@doc(d="One post in the blog") | |
class Post { | |
@doc(d="Title of the post") | |
attr String title; | |
@doc(d="Date and time in ISO 8601 format") | |
attr String date; |
OlderNewer