Skip to content

Instantly share code, notes, and snippets.

View rlemon's full-sized avatar
🍋
Hanging around.

Robert Lemon rlemon

🍋
Hanging around.
  • Dryer Moisture Systems Inc.
  • Kitchener, Ontario. Canada.
View GitHub Profile
@stagas
stagas / how-to-run-apache-and-node.js-together-the-right-way.markdown
Created December 24, 2010 14:45
How to run Apache and Node.js together (the right way)

Step 1

Get a VPS that offers 2 or more IP addresses.

Step 2

From the WHM cPanel, find the menu item Service Configuration, select Apache Configuration and then click on Reserved IPs Editor.

Step 3

@vineeth-pappu
vineeth-pappu / index.html
Created January 26, 2021 05:59
Pure CSS Cyberpunk 2077 Buttons 😎
<button class="cybr-btn">
Cyber<span aria-hidden>_</span>
<span aria-hidden class="cybr-btn__glitch">Cyber_</span>
<span aria-hidden class="cybr-btn__tag">R25</span>
</button>
<button class="cybr-btn">
Buttons<span aria-hidden>_</span>
<span aria-hidden class="cybr-btn__glitch">Buttons_</span>
<span aria-hidden class="cybr-btn__tag">R25</span>
</button>
@Zirak
Zirak / helloWorld.js
Last active January 21, 2021 18:18
The Hello World of the future
/*
* The Hello World of tomorrow
* Copyright (C) 2012 Scruffy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@rupey
rupey / mandelbrot.sql
Last active December 7, 2020 05:38
Mandelbrot plot in postgres
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,
@rlemon
rlemon / utils.js
Created March 23, 2012 15:58
Javascript common Utility functions.
/* Listener Object
* For event registration and unregistration
*/
var listener = (function() {
function listenerAdd(elm, evt, func) {
if( elm.addEventListener ) {
elm.addEventListener(evt, func, false);
} else if( elm.attachEvent ) {
elm.attachEvent('on'+evt, func);
}

So you have a javascript function.

function func () {}

It accepts a value.

function func (param) {}
@kendfrey
kendfrey / darkchat.css
Last active January 2, 2016 21:39
Dark Chat
body {
background-color : #000 !important;
background-image : url("http://raw.github.com/oliversalzburg/se-chat-dark-theme/master/img/skewed_print.png") !important;
color : #ddd !important;
}
.messages {
background-color : #222 !important;
border : none !important;
color : #ddd !important;
@Zirak
Zirak / 1.cinderella.md
Last active December 23, 2015 22:09
Beauty and the knife.
1. Cinderella.

drip, drip, drip

What is that sound? Did someone leave the tap on? Is there a leak somewhere?

drip, drip, drip

Maybe it's raining. It hasn't rained in a long time. She remembers one rainy day in particular, from before she planted her wishing tree under which she weeps. She remembers the smell of sweat, clinging cloth to skin, streaming down a forehead. The all-too-red blush on cheeks. Wheezing and coughing and puffing, creaking planks and a leaky roof (her father will fix it, surely).

@ralt
ralt / gist:5543578
Last active December 17, 2015 03:29
List of list of books
List of list of books so that we can do book exchanges.
Florian Margaine: https://gist.github.com/Ralt/5543525
@mainerror
mainerror / README.md
Last active December 16, 2015 14:09
A minimal 960 grid CSS *framework*.

mini960.css

a minimal 960 grid framework

There's not much you need to know. It supports nesting and offsetting.

The idea is, you start with a row and add columns with a certain span to that row.

Here's a simple example.