Skip to content

Instantly share code, notes, and snippets.

View aendra-rininsland's full-sized avatar
💚
it's nice to be important but it's more important to be nice

Ændra Rininsland aendra-rininsland

💚
it's nice to be important but it's more important to be nice
View GitHub Profile
@aendra-rininsland
aendra-rininsland / nginx
Last active January 25, 2018 15:56 — forked from khelll/nginx
A start / stop script for Nginx on Amazon Linux
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: nginx initscript
# Description: nginx
### END INIT INF
@aendra-rininsland
aendra-rininsland / frame.html
Created October 12, 2016 17:55 — forked from bclinkinbeard/frame.html
D3 listener collisions across iframes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style>
circle {
fill: green;
}
@aendra-rininsland
aendra-rininsland / .block
Last active December 12, 2022 15:17 — forked from vijithassar/README.md
one-line arrow function syntax for getter/setter methods
license: mit
@aendra-rininsland
aendra-rininsland / rfc-date-to-iso-date.xsl
Last active November 10, 2015 18:28 — forked from bzerangue/rfc-date-to-iso-date.xsl
[XSLT] Convert RFC 2822 format to ISO date format
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to ISO 8601
Version: 1.0
Author: Ændrew Rininsland <[email protected]>
Based on work by: Brian Zerangue <[email protected]>
URL: https://gist.github.com/aendrew/eaa220e619008cbb628c
N.b., currently the timezone handling is a bit screwy.
function (currSlideElement, nextSlideElement, options, forwardFlag){
$(currSlideElement).children('.views-field-title').slideUp();
$(currSlideElement).children('.views-field-field-homepage-slider-text').slideUp();
}
$('.view-homepage-slider').cycle({
fx: 'fade',
speed: 'slow',
timeout: 0,
before: onBefore,
after: onAfter,
});
function onBefore(curr, next, opts){
@aendra-rininsland
aendra-rininsland / csv-to-jsonp.php
Created April 27, 2012 12:29 — forked from robflaherty/csv-to-json.php
Convert CSV to JSONP
<?php
/*
* Converts CSV to JSONP by Ændrew Rininsland
* Gratuitous fork of "Converts CSV to JSON" by Rob Flaherty
* -- See: http://www.ravelrumba.com/blog/json-google-spreadsheets/
* Example uses Google Spreadsheet CSV feed
*/
header('Content-type: script/javascript');