Skip to content

Instantly share code, notes, and snippets.

View ebarahona's full-sized avatar

Ed Barahona ebarahona

View GitHub Profile
@ebarahona
ebarahona / index.html
Created June 12, 2018 18:43
Snake highlight
<div class="page">
<div class="container">
<div class="left">
<div class="login">Login</div>
<div class="eula">By logging in you agree to the ridiculously long terms that you didn't bother to read</div>
</div>
<div class="right">
<svg viewBox="0 0 320 300">
<defs>
<linearGradient
@ebarahona
ebarahona / Account.js
Created July 30, 2018 17:27 — forked from drmikecrowe/Account.js
Auto-incrementing ID's in Loopback
module.exports = function (Account) {
Account.observe('before save', function addAccountId(ctx, next) {
if (!ctx.isNewInstance) {
debug('id is already set, returning', ctx.data);
return next();
}
app.dataSources.db.connector.collection("Sequences").findAndModify({name: 'Account'}, [['_id', 'asc']], {$inc: {value: 1}}, {new: true}, function (err, rec) {
if (err) {
console.err(err);
@ebarahona
ebarahona / meta-tags.md
Created February 14, 2020 19:42 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@ebarahona
ebarahona / usaCities.js
Created September 23, 2021 21:02 — forked from Lwdthe1/usaCities.json
JSON of 5,950+ USA Cities and Their States
[
{'city': 'Abbeville', 'state': 'Louisiana'},
{'city': 'Aberdeen', 'state': 'Maryland'},
{'city': 'Aberdeen', 'state': 'Mississippi'},
{'city': 'Aberdeen', 'state': 'South Dakota'},
{'city': 'Aberdeen', 'state': 'Washington'},
{'city': 'Abilene', 'state': 'Texas'},
{'city': 'Abilene', 'state': 'Kansas'},
@ebarahona
ebarahona / index.html
Created April 12, 2022 22:11
Pure CSS Blurred Video Background Login Box. (fork)
<div class="vid-container">
<video id="Video1" class="bgvid back" autoplay="false" muted="muted" preload="auto" loop>
<source src="http://shortcodelic1.manuelmasiacsasi.netdna-cdn.com/themes/geode/wp-content/uploads/2014/04/milky-way-river-1280hd.mp4.mp4" type="video/mp4">
</video>
<div class="inner-container">
<video id="Video2" class="bgvid inner" autoplay="false" muted="muted" preload="auto" loop>
<source src="http://shortcodelic1.manuelmasiacsasi.netdna-cdn.com/themes/geode/wp-content/uploads/2014/04/milky-way-river-1280hd.mp4.mp4" type="video/mp4">
</video>
<div class="box">
<h1>Login</h1>
@ebarahona
ebarahona / 3d-synth-canyon-run.markdown
Created August 14, 2023 23:27
[3D] Synth Canyon Run

[3D] Synth Canyon Run

I wanted to do some experimentation with manipulating geometries and layering several simple shader effects, and this is what I came up with. Enjoy!

The Soundcloud embed is just there for ambiance. Not my music; just something that seemed fitting.

A Pen by Ed on CodePen.

License.