Link to this (so meta): https://gist.github.com/powerc9000/5769891
All the cool kids are doing it!
and
Git helps us colaborate easier and manage the codebase.
Link to this (so meta): https://gist.github.com/powerc9000/5769891
All the cool kids are doing it!
and
Git helps us colaborate easier and manage the codebase.
//getting something by id | |
var element = document.getElementById("idName"); //remeber to not use a "#" | |
//getting something by class | |
var elements = document.getElementsByClassName("className");//remeber not to user a "." | |
//Notice that getElementsByClassName returns a collection not just a singular item. and although it is array like. it isn't an array | |
//include your images like thus | |
//<img data-src=""> | |
(function(){ | |
var cache = document.querySelectorAll("[data-src]"); | |
var c = document.createElement("canvas"); | |
var ctx = c.getContext("2d"); | |
for(var i=0; i<cache.length; i++){ | |
var el = cache[i]; | |
var url = el.getAttribute("data-src"); |
(function(window, undefined){ | |
"use strict"; | |
var headOn = (function(){ | |
var vectorProto; | |
var headOn = { | |
groups: {}, | |
_images: {}, | |
fps: 50, | |
imagesLoaded: true, |
(function(window, undefined){ | |
"use strict"; | |
var headOn = (function(){ | |
var vectorProto; | |
var headOn = { | |
groups: {}, | |
_images: {}, | |
fps: 50, | |
imagesLoaded: true, |
//Clay Murray | |
//CS 1415 | |
//A cool bank simulation with a queue | |
#include <iostream> | |
#include <queue> | |
#include <stdlib.h> | |
#include <time.h> | |
using namespace std; | |
int randomWait(); |
<html> | |
<head> | |
<title>Some page</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<p id="hello" class="hi">Hello World</p> | |
<div class="hi hide-contain">Hey! | |
<div class="hide hi"> |
Hello everyone,
My name is Clay Murray I am a developer at Unicity International This talk is to teach you about using react specifically building Isomorphic websites using react.
The problem. In frameworks like Angular you build your HTML completely on the client side. While there are many upsides to this technique there are a few downsides Time between page download and render Because it is all being constructed client side, it can take a moment to create the page for the user. SEO, because indexers, at least in the past, didn't run javascript on the page, you missed out on important SEO information
struct vector3D { | |
float x; | |
float y; | |
float z; | |
} | |
//now we can make some vector functions | |
vector3D add(vector3D left, vector3D right){ | |
vector3D result = {}; | |
result.x = left.x + right.x; |