Skip to content

Instantly share code, notes, and snippets.

View trieloff's full-sized avatar
🏠
Working from home

Lars Trieloff trieloff

🏠
Working from home
View GitHub Profile
<style>
a.tracklink:visited {color:black!important;display:none;}
a.tracklink:link {color:white!important;;display:none;}
</style>
<script>
function isVisited(url) {
var link_el = document.createElement('a');
link_el.innerHTML = "-";
link_el.className = "tracklink";
link_el.href = url;
javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http://bit.ly/bookmarklet/load.js');document.body.appendChild(e);void(0);
<%--
Youtube Video component.
--%><%
%><%@include file="/libs/foundation/global.jsp"%><%
%><%@page session="false" import="com.day.cq.wcm.foundation.forms.FormsHelper" %><%
%><%
var shareSheetHTML="";
shareSheetHTML += "<style>";
shareSheetHTML += "body {";
shareSheetHTML += " margin: 0;";
shareSheetHTML += " font: normal 300 1em sans-serif;";
shareSheetHTML += "}";
shareSheetHTML += "";
shareSheetHTML += "h1 {";
shareSheetHTML += " text-align: center;";
shareSheetHTML += "}";

Keybase proof

I hereby claim:

  • I am trieloff on github.
  • I am trieloff (https://keybase.io/trieloff) on keybase.
  • I have a public key whose fingerprint is BF26 4000 BFB4 E75F F3D1 99CD EAD4 D144 CAE7 CD54

To claim this, I am signing this object:

@trieloff
trieloff / README.md
Created October 24, 2015 17:23
A command line alternative to LampStealer

The LampStealer app for Hue does not work with newer versions of the bridge, as the API has changed. This shell script works with fewer dependencies and achieves the same. Install jq and run the shell script after pushing the big button on the bridge.

@trieloff
trieloff / footer.html
Created July 6, 2016 20:53
Hiding Footers on the first page in an iA Writer template
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 20,
// font family with optional fallbacks
fontFamily: 'Source Code Pro, Fira Code, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
var request = require('request-promise');
var github = {
token: null,
getUser: function() {
return request({
"method":"GET",
"uri": "https://api.github.com/user",
"json": true,
var request = require('request-promise');
request({
"method":"GET",
"uri": "https://api.github.com/",
"json": true,
"headers": {
"User-Agent": "My little demo app"
}
}).then(console.log, console.log);