#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
<html xmlns:fb="http://ogp.me/ns/fb#"> | |
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# oghowto: http://ogp.me/ns/fb/oghowto#"> | |
<title>OG Tutorial App</title> | |
<meta property="fb:app_id" content="256521937796214" /> | |
<meta property="og:type" content="oghowto:demo" /> | |
<meta property="og:title" content="Open Graph HowTo" /> | |
<meta property="og:image" content="http://placehold.it/200x200" /> | |
<meta property="og:description" content="Minimum requirements to get Open Graph objects and actions working" /> | |
<meta property="og:url" content="http://oghowto.herokuapp.com/test.html"> | |
<style type="text/css"> |
/** | |
* jQuery extension, add support `scrollstart` and `scrollend` events. | |
* | |
* @author RubaXa <[email protected]> | |
* @github https://gist.github.com/RubaXa/5568964 | |
* @license MIT | |
* | |
* | |
* @settings | |
* $.special.scrollend.delay = 300; // default ms |
function retry(isDone, next) { | |
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
var id = window.setInterval( | |
function() { | |
if (isDone()) { | |
window.clearInterval(id); | |
next(is_timeout); | |
} | |
if (current_trial++ > max_retry) { | |
window.clearInterval(id); |
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="GifEncoder.cs" company="James South"> | |
// Copyright (c) James South. | |
// Licensed under the Apache License, Version 2.0. | |
// </copyright> | |
// <summary> | |
// Encodes multiple images as an animated gif to a stream. | |
// <remarks> | |
// Always wire this up in a using block. | |
// Disposing the encoder will complete the file. |
#!/bin/bash | |
REPO_URL="https://repository.xxx.net/repository/" | |
USER="admin" | |
PASSWORD="datpassword" | |
BUCKET="portal-docker" | |
KEEP_IMAGES=10 | |
IMAGES=$(curl --silent -X GET -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -u ${USER}:${PASSWORD} "${REPO_URL}${BUCKET}/v2/_catalog" | jq .repositories | jq -r '.[]' ) |
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"databaseAccount_free_tier_name": { | |
"defaultValue": "my-cosmos-account-name", | |
"type": "String" | |
} | |
}, | |
"variables": {}, |
Remove old releases from a Nexus3-repository
This Groovy-script will purge old versions (sorted by version-number) from a repository hosted on Nexus 3.x.
You can set the desired repository and a maximum amount of versions at the begining of this script.
namespace AkkaRoomReservationSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var system = ActorSystem.Create("MySystem"); | |
IActorRef reservator = system.Actorof<ReservationActor>("reservator"); | |
reservator.Tell (new BookThe Room { RoomNumber = "1"} ); | |
reservator.Tell(new BookTheRoom { RoomNumber = "1" }); |
1) [ORLEANS.NET BACK-END] | |
// GRAIN (ACTOR) INTERFACE DEFINITION (ICartGrain.cs) | |
namespace GrainInterfaces | |
{ | |
public interface ICartGrain : IGrainWithGuidKey | |
{ | |
Task<Cart> GetCart(); | |