Skip to content

Instantly share code, notes, and snippets.

View wmora's full-sized avatar

William Mora wmora

View GitHub Profile
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
mongoose.connect('localhost', 'testing_findAndModifyAddToSet');
@wmora
wmora / twitter-bird.svg
Last active August 29, 2015 14:03 — forked from hail2u/twitter-bird.svg
Twitter bird SVG for Inkscape
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wmora
wmora / FloatingActionButton.java
Last active October 10, 2015 20:20 — forked from Jogan/FloatingActionButton.java
Android Material Design's Floating Action Button. See http://www.google.com/design/spec/components/buttons.html
package your_package;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;