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 axois = require('axois') | |
// Payload to send, make sure you include any CSS or Font Library at the time | |
const data = { | |
html: "ENTER YOUR MARKUP HERE", | |
} | |
const config = { | |
headers: { | |
Authorization: 'USER_ID_HERE', |
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
try { | |
storage.setItem(storageTestKey, 'test'); | |
storage.removeItem(storageTestKey); | |
} catch (e) { | |
if (e.code === DOMException.QUOTA_EXCEEDED_ERR && storage.length === 0) { | |
// private mode | |
} else { | |
// public 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
<!DOCTYPE html> | |
<html lang="en" id="facebook"> | |
<head> | |
<title>Facebook | Error</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="cache-control" content="no-cache"> | |
<meta http-equiv="cache-control" content="no-store"> | |
<meta http-equiv="cache-control" content="max-age=0"> | |
<meta http-equiv="expires" content="-1"> | |
<meta http-equiv="pragma" content="no-cache"> |
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
<?php | |
session_start(); | |
require ("tumblrPHP.php"); | |
$consumer = "XXXXXXX"; | |
$secret = "XXXXXXXX"; | |
$tumblr = new Tumblr($consumer, $secret, $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']); |
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
package com.phonegap.plugins.mapkit; | |
import org.apache.cordova.CordovaWebView; | |
import org.apache.cordova.CallbackContext; | |
import org.apache.cordova.CordovaInterface; | |
import org.apache.cordova.CordovaPlugin; | |
import org.apache.cordova.LOG; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
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
/** | |
* FastClick: Set up handling of fast clicks | |
* | |
* On touch WebKit (eg Android, iPhone) onclick events are usually | |
* delayed by ~300ms to ensure that they are clicks rather than other | |
* interactions such as double-tap to zoom. | |
* | |
* To work around this, add a document listener which converts touches | |
* to clicks on a global basis, excluding scrolls and gestures. The | |
* default click events are then cancelled to prevent double-clicks. |
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
var abcTime = function(ele, format, refresh) { | |
/* main */ | |
var now = moment(); | |
$(ele).each(function() { | |
if ($(this).attr("data-abctime")) { | |
var time = moment($(this).attr("data-abctime")); | |
} | |
else { |
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 onLayerClick() { | |
// do your class switching here | |
} | |
var fasterClick = function() { | |
var fasterClickButton = document.querySelector('.button'); | |
new FastClick(fastClickButton); | |
} |
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
/** | |
* FastClick: Set up handling of fast clicks | |
* | |
* On touch WebKit (eg Android, iPhone) onclick events are usually | |
* delayed by ~300ms to ensure that they are clicks rather than other | |
* interactions such as double-tap to zoom. | |
* | |
* To work around this, add a document listener which converts touches | |
* to clicks on a global basis, excluding scrolls and gestures. The | |
* default click events are then cancelled to prevent double-clicks. |
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
<?php | |
// include the Tumblr PHP file. The directory is up to your choosing. | |
include ("lib/tumblrPHP.php"); | |
// Enter your Consumer / Secret Key: | |
$consumer = "CONSUMER_KEY"; | |
$secret = "SECRET_KEY"; | |
// Start the Session | |
session_start(); |
NewerOlder