Skip to content

Instantly share code, notes, and snippets.

Avatar

William Mora wmora

View GitHub Profile
@wmora
wmora / index.html
Created December 7, 2012 05:18
A CodePen by douglasdeodato. Single Element Pure CSS MacBook Pro - This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
View index.html
<i class="macbook"></i>
View MainActivity.java
// 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
View findByIdAndUpdate-addtoset.js
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 / Simple REST client in node.js
Last active May 11, 2020 22:51
This is a basic example of a GET call to an https server using node.js + express
View Simple REST client in node.js
//It's an express app, so make sure you download the dependencies
var express = require('express')
, http = require('http')
, https = require('https')
, path = require('path');
var app = express();
app.set('port', process.env.PORT || 8888);
@wmora
wmora / index.html
Created March 25, 2013 01:49
A CodePen by William Mora. 2D Transform Demo - A simple demo using the transform property.
View index.html
<html>
<body>
<h1>Hover over the cricles and see what they do!</h1>
<div id="spinner">
<p>
I spin!
</p>
</div>
<div id="skewer">
<p>
@wmora
wmora / index.html
Created July 26, 2013 02:51
A CodePen by William Mora. Where am I? - Simple ajax call to demonstrate how to get a client's location using MercadoLibre's APIs
View index.html
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'/>
</head>
<body>
<h1>Where am I?</h1>
<input type='button' id='findme' value='Find me!'/>
<br /><br />
<div id='message'></div>
</body>
@wmora
wmora / twitter-bird.svg
Last active August 29, 2015 14:03 — forked from hail2u/twitter-bird.svg
Twitter bird SVG for Inkscape
View twitter-bird.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wmora
wmora / retweet.svg
Created July 4, 2014 01:34
Retweet icon SVG for Inkscape
View retweet.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wmora
wmora / twitter-reply.svg
Created July 5, 2014 16:45
Reply icon SVG for Inkscape
View twitter-reply.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wmora
wmora / star.svg
Created July 5, 2014 16:46
Star icon SVG for Inkscape
View star.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.