This is a simple parallax effect that I made for http://mymaplist.com/login
A Pen by Maksim Surguy on CodePen.
var Calculator = {}; | |
Calculator.add= function(a,b) | |
{ | |
return (a+b); | |
}; |
//body bg | |
@body-bg : #EEE | |
//navbar | |
@navbar-inverse-bg : cadetblue | |
@navbar-inverse-link-color : #000 | |
//Wells | |
@well-bg : cadetblue |
<!-- demo code for calculator UI --> | |
<h1>Calculator</h1> | |
<div class="well row"> | |
<div class="col-md-2 text-center"> | |
<p class="badge">ADD</p> | |
</div> | |
<div class="col-md-2"> | |
<input type="text" class="form-control" id="add_a" placeholder="Enter Number (a)"> | |
</div> | |
<div class="col-md-1 text-center"> |
<!-- Markup --> | |
<div class="btn-group btn-input clearfix"> | |
<button type="button" class="btn btn-default dropdown-toggle form-control" data-toggle="dropdown"> | |
<span data-bind="label">Select One</span> <span class="caret"></span> | |
</button> | |
<ul class="dropdown-menu" role="menu"> | |
<li><a href="#">Item 1</a></li> | |
<li><a href="#">Another item</a></li> | |
<li><a href="#">This is a longer item that will not fit properly</a></li> | |
</ul> |
This is a simple parallax effect that I made for http://mymaplist.com/login
A Pen by Maksim Surguy on CodePen.
a Rubik's Cube made in HTML, JavaScript and CSS.
A Pen by Gregor Adams on CodePen.
angular.module('d3AngularApp', ['d3']) | |
.directive('d3Bars', ['$window', '$timeout', 'd3Service', | |
function($window, $timeout, d3Service) { | |
return { | |
restrict: 'A', | |
scope: { | |
data: '=', | |
label: '@', | |
onClick: '&' | |
}, |
<!-- | |
- | |
- The below code will convert a ng-repeat which display 3 column like | |
- 1 | 2 | 3 | |
- 4 | 5 | 6 | |
- 7 | 8 | 9 | |
- 10 | |
- To | |
- | |
- 1 | 5 | 8 |
/** | |
** http://www.sitepoint.com/web-foundations/mime-types-complete-list ** | |
MIME Types for video | |
Video Type Extension MIME Type | |
Flash .flv video/x-flv | |
MPEG-4 .mp4 video/mp4 | |
iPhone Index .m3u8 application/x-mpegURL | |
iPhone Segment .ts video/MP2T |
curl -u [[USERNAME]] -s https://api.github.com/orgs/[[ORGANIZATION]]/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |