Skip to content

Instantly share code, notes, and snippets.

View skuro's full-sized avatar

Carlo Sciolla skuro

View GitHub Profile
@skuro
skuro / README.md
Last active March 8, 2017 20:09 — forked from Gonzih/README.md
markov-chain-meetup-dojo
@skuro
skuro / gifcast.zsh
Created January 8, 2017 15:56
You need to have imagemagick and ffmpeg installed.
gifcast () {
mkdir /tmp/gifcast
ffmpeg -i "$@" -r 10 /tmp/gifcast/gifcast%05d.png
convert -layers Optimize /tmp/gifcast/gifcast*.png gifcast.gif
rm /tmp/gifcast/gifcast*.png
rmdir /tmp/gifcast
}
@skuro
skuro / proc.clj
Created August 24, 2016 07:57 — forked from codification/proc.clj
Clojure asynchronous process
(ns proc
(:import [java.lang ProcessBuilder])
(:use [clojure.java.io :only [reader writer]]))
(defn spawn [& args]
(let [process (-> (ProcessBuilder. args)
(.start))]
{:out (-> process
(.getInputStream)
(reader))
private static List<String> ASSOC_NAMES_TO_EXTRACT = Arrays.asList(new String[]{"imageRef","thumbnailRef"});
/**
* Gets a list of associations of type my:imageRef and my:thumbnailRef, given an Alfresco node;
* Implementation is not optimal
* @param nodeRef The Alfresco NodeRef that contains the associations we want to extract
* @return a List of associations of type my:imageRef and my:thumbnailRef
*/
public List<AssociationRef> getAssociations(NodeRef nodeRef) {
List<AssociationRef> associations = serviceRegistry.getNodeService().getTargetAssocs(nodeRef, RegexQNamePattern.MATCH_ALL);
List<AssociationRef> toReturn = new ArrayList<AssociationRef>();
@skuro
skuro / Questions
Created September 6, 2011 13:22
GOTO Amsterdam
Day job: Senior R&D Developer
What is your language of choice: Java/Clojure
Open Source contributions: lambdalf, maven-alfresco-archetypes
How do you use GitHub: All the OpenSource code I can possibly push in there, \
my personal CV, \
snippets and sample projects backing up my blog posts, \
keep myself up to date with tons of OpenSource projects, \
meet fellow techies, \
earn badges on some other social coding sites, \
give extra points to interviewees with an in-shape GitHub account.