Skip to content

Instantly share code, notes, and snippets.

View damog's full-sized avatar
#neverstop

David Moreno damog

#neverstop
View GitHub Profile
@damog
damog / keybase.md
Last active February 22, 2019 20:33

Keybase proof

I hereby claim:

  • I am damog on github.
  • I am damogar (https://keybase.io/damogar) on keybase.
  • I have a public key ASCwpvMR-pQV99UiZXgvZ3mRmXsZq_t_1CKMoui8HcRMhAo

To claim this, I am signing this object:

@damog
damog / gist:7c1471db316e9c0d80a029b623b87e53
Last active March 20, 2019 03:49
Dear shady GDPR-violating company
Hi,
I've been contacted by a talent acquisition associate offering me recruiting
services. He reached out to me directly on my personal cell phone number. I
asked him where he got my number and he said that his company invested in "an
API plugin called Lusha".
As an EU-based individual and in accordance to the General Data Protection
Regulation, I would like:
@damog
damog / mojo-crawler.pl
Created August 13, 2016 09:43 — forked from creaktive/mojo-crawler.pl
Simple web crawler/scraper implemented using Mojolicious
#!/usr/bin/env perl
use 5.010;
use open qw(:locale);
use strict;
use utf8;
use warnings qw(all);
use Mojo::UserAgent;
# FIFO queue
@damog
damog / spotify-ichat.sh
Created August 11, 2011 19:23
Spotify to iChat and Adium statuses
#!/bin/bash
# shamelessly taken from: http://webcache.googleusercontent.com/search?q=cache:aUG0MH-OLaEJ:codesnippets.joyent.com/posts/show/1954+spotify+ichat&cd=1&hl=en&ct=clnk&gl=us&source=www.google.com
# messages have this format:
# 'Mon Jul 5 13:25:05 azeef-macbook GrowlHelperApp[46245] <Warning>: Spotify: Do the Buildings and Cops Make You Smile? (Bedroom Walls\nThe 4400) - Priority 0'
# which this script extracts as:
# 'Spotify: Do the Buildings and Cops Make You Smile? (Bedroom Walls'
# 'The 4400)'
# or (a little more abstract):
~ $ feedbag cnn.com
== cnn.com:
- http://rss.cnn.com/rss/cnn_topstories.rss
- http://rss.cnn.com/rss/cnn_latest.rss
>> require "rubygems"
=> true
>> require "feedbag"
=> true
>> Feedbag.find "stereonaut.net"
=> ["http://stereonaut.net/feed", "http://stereonaut.net/tag/feed/", "http://stereonaut.net/comments/feed/"]
package weiss.nonstandard;
// ArrayStack class
//
// CONSTRUCTION: with no initializer
//
// ******************PUBLIC OPERATIONS*********************
// void push( x ) --> Insert x
// void pop( ) --> Remove most recently inserted item
// AnyType top( ) --> Return most recently inserted item
//********************************************************************
// QueueADT.java Authors: Lewis/Chase
//
// Defines the interface to a queue collection.
//********************************************************************
package jss2;
public interface QueueADT<T>
class OddityTest {
public static boolean isItOdd(int i) {
return i % 2 == 1;
}
public static boolean isItReallyOdd(int i) {
return i % 2 != 0;
}
public static void main(String[] args) {
import java.util.*;
public class ArrayIterator<E> implements Iterator<E> {
private final E[] array;
private final int count;
private int cursor = 0;
public ArrayIterator(E[] contents, int ccount) {
array = contents;