A simple example of how to build a reusable component in A-frame.
(function () { | |
if ( typeof window.CustomEvent === "function" ) return false; | |
function CustomEvent ( event, params ) { | |
params = params || { bubbles: false, cancelable: false, detail: undefined }; | |
var evt = document.createEvent( 'CustomEvent' ); | |
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail ); | |
return evt; | |
} |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
/* http://themarklee.com/2013/10/16/simple-crossfading-slideshow-css/ */ | |
.css-slideshow { | |
position: relative; | |
max-width: 495px; | |
height: 370px; | |
margin: 1em auto .5em auto; | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; | |
} | |
.css-slideshow figure { |
$(document).ready(function() { | |
$("#pics iframe").each(function(index) { | |
var ratio = $(this).height() / $(this).width(); | |
var origHeight = $(this).height(); | |
var origWidth = $(this).width(); | |
var self = this; | |
// bind to window with closure that references the | |
// iframe since the iframe doesn't get resize events | |
// until (you know) we resize it. | |
$(window).resize(function() { |
<div class="container" id="main"> | |
<nav> | |
<h1>Navigation</h1> | |
<ul> | |
<li><a href="#lorem">Lorem ipsum dolor sit amet.</a></li> | |
<li><a href="#invenitatis">In venenatis auctor eros sed rhoncus.</a></li> | |
<li><a href="#utinorci">Ut in orci enim.</a></li> | |
<li><a href="#donecdiam">Donec diam dolor.</a></li> | |
<li><a href="#donectortor">Donec tortor mi.</a></li> | |
</ul> |
"There is no sharp line between speculation, hypothesis, theory, principle, and fact, but only a difference along a sliding scale, in the degree of probability of the idea. When we say a thing is a fact, then, we only mean that its probability is an extremely high one: so high that we are not bothered by doubt about it and are ready to act accordingly. Now in this use of the term fact, the only proper one, evolution is a fact."
- Muller, H. J.
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
This is a list of the SublimeText 2 addons I use for my development environment.
Most active GitHub users (git.io/top)
The list would not be updated for now. Don't write comments.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:
githubUsers