This script is created as an example to show how easy it is to use gstorm to crunch and consume data from rest apis.
Either download the script and run:
groovy ghstarred.groovy <your_github_id>
Or hotload it:
/** | |
* For registering Java {@link Runnable runnables} as event listeners on GWT DOM elements. | |
* <p> | |
* This class allows for registering listeners for all DOM events including those not supported by GWT. | |
*/ | |
public class NativeDomEvents { | |
public static native void addEventListener(Element element, String event, Runnable listener) /*-{ | |
var eventListener = function() { |
#!/bin/bash | |
# This must be run from master | |
git checkout master | |
# Update our list of remotes | |
git fetch | |
git remote prune origin | |
# Remove local fully merged branches | |
git branch --merged master | grep -v 'master$' | xargs git branch -d | |
# Show remote fully merged branches |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
#!/usr/bin/env python | |
""" | |
Requirements: | |
android2po | |
opterator | |
Sample: | |
$ python android2po_plurals.py pl |
#!/bin/sh | |
perl -ne'/END:/ && $i--; print "\t" x $i . "$_\n"; /BEGIN:/ && $i++;' |
*.scala diff=scala |
This script is created as an example to show how easy it is to use gstorm to crunch and consume data from rest apis.
Either download the script and run:
groovy ghstarred.groovy <your_github_id>
Or hotload it:
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
git checkout --orphan temp_master | |
git rm -rf . | |
git commit --allow-empty -m 'Make initial root commit' | |
git rebase --onto temp_master --root master | |
git branch -D temp_master |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention( RetentionPolicy.RUNTIME ) | |
@Target( { | |
java.lang.annotation.ElementType.METHOD | |
} ) | |
public @interface Repeat { | |
public abstract int times(); |