Skip to content

Instantly share code, notes, and snippets.

// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
@z3bbster
z3bbster / mm-standalone.html
Last active December 13, 2015 20:28
MishaMesh as standalone
<!DOCTYPE html>
<html>
<head>
<title>MishaMesh2013 Template</title>
<!-- MishaMesh -->
<link href="css/mishamesh2013.min.css" rel="stylesheet" media="screen">
</head>
<body>
<h1>Hello, world!</h1>
<script src="http://code.jquery.com/jquery-latest.js"></script>
@z3bbster
z3bbster / mm-bootstrap.html
Last active December 13, 2015 20:28
MishaMesh in combination with bootstrap
<!DOCTYPE html>
<html>
<head>
<title>MishaMesh2013 Template</title>
<!-- MishaMesh -->
<link href="css/mishamesh2013.min.css" rel="stylesheet" media="screen">
</head>
<body>
<h1>Hello, world!</h1>
<script src="http://code.jquery.com/jquery-latest.js"></script>
@z3bbster
z3bbster / mm-structure.txt
Created February 17, 2013 02:54
MishaMesh structure
MishMesh/
├── css/
│ ├── MishMesh.css
│ ├── MishMesh.min.css
├── js/
│ ├── MishMesh.js
│ ├── MishMesh.min.js
└── img/
├── glyphicons-halflings.png
├── glyphicons-halflings-white.png
//how to convert xml to json using jquery
// http://www.fyneworks.com/jquery/xml-to-json/#tab-Usage
/*
XML File:
<gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref">
<gesmes:subject>Reference rates</gesmes:subject>
<gesmes:Sender>
<gesmes:name>European Central Bank</gesmes:name>
</gesmes:Sender>
//Load XML file
$(document).ready(function(){
$("#dvContent").append("<ul></ul>");
$.ajax({
type: "GET",
url: "BookList.xml",
dataType: "xml",
success: function(xml){
$(xml).find('Book').each(function(){
var sTitle = $(this).find('Title').text();
$.getJSON('someurl', {somedata}, function(json_data){
//no need for parsejson
//use the json_data object
var table_obj = $('table');
$.each(json_data, function(index, item){
table_obj.append($('<tr id="'+item.id+'"><td>'+item.data+'</td></tr>'));
})

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

Basic HTML Meta Tags

<meta charset='UTF-8'>
<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'>
Whoops.
We seem to have missed the gist of that gist you were looking for.