Skip to content

Instantly share code, notes, and snippets.

View jmyrland's full-sized avatar

Jørn A. Myrland jmyrland

View GitHub Profile
@jmyrland
jmyrland / .readme.md
Last active January 20, 2016 10:17
Episerver 7 - Adaptive images

Adaptive Images for Episerver 7

  1. Add AdaptiveImageHandler.cs to your project.

  2. In the EPiServerFramework.config find the virtualPathProvider called Global Files and set useRouting="false", like so:

     <add showInFileManager="true" virtualName="Global Files" virtualPath="~/Global/"
       bypassAccessCheck="false" indexingServiceCatalog="Web" useRouting="false"
       customFileSummary="~/FileSummary.config" name="SiteGlobalFiles"
       type="EPiServer.Web.Hosting.VirtualPathVersioningProvider, EPiServer" />
    
@jmyrland
jmyrland / .readme.md
Last active July 12, 2019 10:15
Off canvas menu with touch handles.

Off canvas menu with touch handles.

View an example here.

This example is based on elements of this post.

Incliudes a OffCanvasMenuController to handle touch events bound to the off canvas menu. For example when swiping from the outer left side to the right, the left off canvas menu is dragged along.

Example usage

@jmyrland
jmyrland / DetailedOutput.txt
Last active December 14, 2015 21:19
C# Console App for getting vimeo tokens. Based on VimeoDotNet.
This software uses VimeoDotNet to connect to Vimeo API. To support this project visit http://support.saeedoo.com.
ExecuteGetCommand: GET: http://vimeo.com/oauth/request_token?oauth_callback=oob&oauth_consumer_key=6a0863a7e1a977e0a11b7b1d44e4fd4fe2b099ee&oauth_nonce=12538763498766544664049620&oauth_signature=m97UWvPR%2fkHifaKh%2bLcUv1mio%2bM%3d&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1363166144&oauth_version=1.0&
ExecuteGetCommand: OK: http://vimeo.com/oauth/request_token?oauth_callback=oob&oauth_consumer_key=6a0863a7e1a977e0a11b7b1d44e4fd4fe2b099ee&oauth_nonce=12538763498766544664049620&oauth_signature=m97UWvPR%2fkHifaKh%2bLcUv1mio%2bM%3d&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1363166144&oauth_version=1.0&
[134B]: oauth_token=f5e46105426e91e42f3fb094e6301451&oauth_token_secret=594c8309381581eda2a1da71aa1cead935d1eaaf&oauth_callback_confirmed=true
The thread '<No Name>' (0x1b44) has exited with code 0 (0x0).
The thread '<No Name>' (0x14cc) has exited with code 0 (0x0).
ExecuteGetCommand: GET
@jmyrland
jmyrland / ex.js
Last active December 11, 2015 18:09
socket.io xhr-polling test.
var i = 0,
io = require('socket.io'),
http = require('http');
var server = http.createServer().listen(80);
io = io.listen(server);
io.set('transports', [ 'xhr-polling' ]);
io.sockets.on('connection', function(socket){
@jmyrland
jmyrland / nodejs.spec
Created July 19, 2012 12:23 — forked from splaice/nodejs.spec
RPM spec file for node
%define ver 0.8.2
%define rel 1
%define jobs 2
Name: nodejs
Version: %{ver}
Release: %{rel}
Summary: Node's goal is to provide an easy way to build scalable network programs.
Group: Applications/Internet
License: Copyright Joyent, Inc. and other Node contributors.