Skip to content

Instantly share code, notes, and snippets.

@emrahtoy
emrahtoy / CacheableDownloadHandler.cs
Created August 19, 2022 11:27 — forked from mob-sakai/CacheableDownloadHandler.cs
Etag-cacheable DownloadHandler for Unity.
using UnityEngine.Networking;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using UnityEngine;
using System;
namespace Mobcast.Coffee.AssetSystem
{
@emrahtoy
emrahtoy / postman_quickblox_signature.js
Last active April 8, 2021 12:29
Postman - Quicblox signature pre-request script.
function setRequestBody(httpMethod, requestBody) {
var timestamp = ~~(Date.now()/1000); // easy way to get required type timestamp
var REQUEST = {
"application_id":"xxxxxx", // your own application_id
"auth_key":"yyyy", // your own auth_key
"timestamp":timestamp,
"nonce":timestamp,
"signature":""
}
@emrahtoy
emrahtoy / app.js
Last active August 29, 2015 14:07
Two way binding for marionette with marionette.behavior like angularjs directives approach
var focus = new Marionette.Application();
Marionette.Behaviors.behaviorsLookup = function() {
return focus.behaviors;
};
focus.router = new Marionette.AppRouter();
focus.addRegions({
mainRegion: '#mainRegion'