Skip to content

Instantly share code, notes, and snippets.

View victorkane's full-sized avatar

Victor Kane victorkane

View GitHub Profile
<?php
/**
* @file news_features.module
* Expose an API for getting smartqueue content from Section and Edition vocabulary term based queues
* Given a taxonomy term (tid) of a section or category
* return the qid and sqid, and return lists of content populating the sub-queues.
*/
/*
* Given a $tid, bring 9 featured members of the tid based smartqueue,
@victorkane
victorkane / .gitignore
Last active November 22, 2015 16:16
babel 6: trying out Immutable.js with node-babel from the command line
node_modules
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://fb.me/react-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.3/redux.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
'use strict';
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://fb.me/react-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
</head>
<!DOCTYPE html>
<html>
<body>
<div style="float:left;width:44%;background-color:black; color:white; padding:2%;">
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
</div>
<!DOCTYPE html>
<html>
<head>
<style>
#header {
background-color:#000000;
color:#ccc000;
text-align:center;
padding:5px;
}
@victorkane
victorkane / index.html
Created April 19, 2016 00:55
JS DOM assignment (ToDo list in pure JavaScript)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TODO List (tasks)</title>
<style>
.todo-done {
text-decoration: line-through;