Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Alexandre Rosenfeld",
"label": "Programming Team Lead",
"image": "",
"email": "arsfeld@gmail.com",
"phone": "",
"url": "https://arsfeld.com",
"summary": "",
/**
* @param {number[]} nums
* @return {number[][]}
*/
var threeSum = function(nums) {
let ret = {}; //new Set();
const arr = nums;
for (let i = 0; i < arr.length - 2; i++) {
@arsfeld
arsfeld / FMShow.php
Created July 1, 2015 17:43
Laravel 5.1 command to list FileMaker layouts or show information about one specific layout
<?php namespace App\Console\Commands;
use Illuminate\Console\Command;
use Soliant\SimpleFM\Adapter;
class FMShow extends Command {
/**
* The console command signature.
*
@arsfeld
arsfeld / .env
Last active August 29, 2015 14:24
Simple FileMaker Laravel 5 Provider
FM_HOST=filemaker.server.com
FM_DATABASE=FM_DATABASE
FM_USERNAME=admin
FM_PASSWORD=admin
@arsfeld
arsfeld / nuvolaplayer.spec
Created August 7, 2013 16:25
RPMSPEC for Nuvola Player 2.0.4 in Fedora 19
Name: nuvolaplayer
Version: 2.0.4
Release: 1%{?dist}
Summary: Cloud music integration for your linux desktop
Group: Applications/Multimedia
License: GPL
URL: http://projects.fenryxo.cz/Nuvola_Player/Main_page/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@arsfeld
arsfeld / slideshow.vala
Created July 7, 2011 21:49
Slideshow demo to show Clutter + GStreamer exporting (compile with valac -g --save-temps --pkg gdk-pixbuf-2.0 --pkg gstreamer-0.10 --pkg gstreamer-app-0.10 --pkg gio-2.0 --pkg clutter-1.0 slideshow.vala)
using Clutter;
using Mx;
class ClutterDemo {
private Stage stage;
private Rectangle[] rectangles;
private List<string> filenames;
private int current;
private Queue<string> queue;
@arsfeld
arsfeld / .bashrc
Created January 20, 2009 05:14 — forked from henrik/.bashrc
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master*]$ # dirty working directory
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"