Skip to content

Instantly share code, notes, and snippets.

View Agnostic's full-sized avatar

Gilberto Avalos Agnostic

View GitHub Profile
@Agnostic
Agnostic / list.html
Last active December 21, 2015 00:58
Custom filter for ngRepeat using objects (AngularJS)
<div ng-controller='listController'>
<input type='text' ng-model='filterInput'>
<ul>
<li ng-repeat='item in items | filter:customFilter'>
{{ item.name }}
</li>
</ul>
</div>
@Agnostic
Agnostic / bouncingBall.js
Created June 5, 2013 15:07
Simple bouncing ball with jQuery.
// Create element
var _ball = document.createElement('div');
_ball.className = 'ball';
// CSS
$(_ball).css({
width: '40px',
height: '40px',
borderRadius: '50%',
position: 'fixed',