This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Script that renews a Let's Encrypt certificate for the Application Proxy of an | |
# Enterprise Application. | |
################################################################################ | |
# This script can be run standalone from your local machine to automate the | |
# steps of a specific ACME renewal for Azure AD App Proxy application. | |
# | |
# Prior to using this script, you will need to ensure you have a DNS zone setup | |
# that points to your Azure AD App Proxy deployment. Azure AD will give you a | |
# hostname that will need to be referenced by a CNAME record in the zone. So, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const require1 = require('./require1'); | |
const require2 = require('./require2'); | |
const require3 = require('./require3'); | |
console.log(require1.getValue()); | |
console.log(require2.getValue()); | |
console.log(require3.getValue()); |
- install jspm beta:
npm install -g jspm@beta
- set up your project:
jspm init
- install dependencies:
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************** | |
* A replacement for the "backingStore" modelLibrary | |
* | |
* This is a bare version of the original backingStore, | |
* without ANY change tracking - that's why it will work in IE8! | |
* (Object.defineProperty not required any more) | |
* | |
* This adapter is a "drop in" replacement for the "backingStore" adapter in Breeze core. | |
* It has the same adapter name so it will silently replace the original "backingStore" adapter | |
* when you load this script AFTER the breeze library. |
This Gist contains the script and generated output file for an Acer B276HUL.
The pre-generated file below is known to work with:
- OS X Mavericks
- OS X Yosemite
- OS X El Capitan
For El Capitan:
- Restart your Mac while holding Command-R: this puts your Mac into Recovery Mode.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Web.Mvc; | |
namespace DemoApp | |
{ | |
public class ExternalJavaScriptFileAttribute : ActionFilterAttribute | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ImpromptuInterface; | |
using Newtonsoft.Json.Linq; | |
/* | |
* This example was inspired by | |
* "Serialization is Lossy" | |
* http://kellabyte.com/2013/05/02/serialization-is-lossy/ | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using PostSharp.Aspects; | |
using PostSharp.Aspects.Configuration; | |
using PostSharp.Aspects.Serialization; | |
using Resonance.Messenging.Diagnostics; | |
[assembly: StackOverflowDetection] | |
namespace Resonance.Messenging.Diagnostics | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_avatar_from_service(service, userid, size) { | |
// this return the url that redirects to the according user image/avatar/profile picture | |
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
// everything else will go to the fallback | |
// google and gravatar scale the avatar to any site, others will guided to the next best version |
NewerOlder