Skip to content

Instantly share code, notes, and snippets.

Paul Gueller oomlaut

  • Milwaukee, WI
Block or report user

Report or block oomlaut

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oomlaut
oomlaut / sandbox.css
Created Nov 20, 2018
Testing something
View sandbox.css
* {
display: none;
}
@oomlaut
oomlaut / generatesitemap.php
Last active Aug 29, 2015
Generate sitemap.xml formatted file from text file containing list of links
View generatesitemap.php
<?php
print("\n");
if(!isset($argv[1]))
{
die("! Required argument: filename \n");
}
$filename = $argv[1];
@oomlaut
oomlaut / SHA-1.js
Created Oct 23, 2014
SHA-1 implementation in JavaScript
View SHA-1.js
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* SHA-1 implementation in JavaScript (c) Chris Veness 2002-2014 */
/* */
/* - see http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html */
/* http://csrc.nist.gov/groups/ST/toolkit/examples.html */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* jshint node:true *//* global define, escape, unescape */
'use strict';
View fixednsap.css
#container{
width:960px;
margin:0 auto;
}
header{
width:100%;
height:200px;
background-color:#ccc;
}
section#main{
@oomlaut
oomlaut / dynamicselect.html
Last active Aug 29, 2015
dynamicselect_ui
View dynamicselect.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="dynamicselect.js"></script>
</head>
<body>
View cardbox.html
<!DOCTYPE html>
<html>
<head>
<title>accordion</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="cardbox.js"></script>
<link href="styles.css" rel="stylesheet">
</head>
<body>
@oomlaut
oomlaut / loop.less
Created Jul 24, 2013
create a recursive loop to output a certain number of iterations of a LESS selector originally found at: http://blog.thehippo.de/2012/04/programming/do-a-loop-with-less-css/
View loop.less
@iterations: 30;
// helper class, will never show up in resulting css
// will be called as long the index is above 0
.loopingClass (@index) when (@index > 0) {
// create the actual css selector, example will result in
// .myclass_30, .myclass_28, .... , .myclass_1
(~".myclass_@{index}") {
// your resulting css
@oomlaut
oomlaut / server-connect.js
Created Jul 22, 2013
the required file to start a web server with node.js
View server-connect.js
var connect = require('connect');
connect.createServer(
connect.static(__dirname)
).listen(8888);
@oomlaut
oomlaut / randomint.js
Created Jul 16, 2013
generates a random integer based on a parameter
View randomint.js
/**
* used for testing purposes only
* @param {int} size the maximum number possible
* @return {array} a random integer
*/
function randomInt(max){
return Math.ceil(Math.random() * max);
}
@oomlaut
oomlaut / concat.String.js
Created Jul 12, 2013
Extend the String superclass to enable a more OO-elegant way of joining strings.
View concat.String.js
(function(){
String.prototype.concat = function(argument){
if ( arguments.length > 0 ){
if ( typeof argument === "string" ) {
return this + argument;
} else {
var str = "";
for ( var i in argument ){
str += argument[i];
}
You can’t perform that action at this time.