consumer_key
:d208adaf663a85029c33f55ce73d2705
consumer_secrect
:9faba5ec4c19aa68ca96511201b20f69
- Initiate url:
http://domain.com/oauth/initiate
- Authorize url:
http://domain.com/admin/oauth_authorize
- Token request url:
http://domain.com/oauth/token
- Callback url (for dumping returned
oauth_token
andoauth_verifier
): http://domain.com/callback.php
This file contains hidden or 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() | |
{ | |
tinymce.create('tinymce.plugins.BrettsYouTube', | |
{ | |
init : function(ed, url) { | |
ed.addButton('brettsyoutube', | |
{ | |
title : 'brettsyoutube.youtube', | |
image : 'http://localhost/wordpress/wp-includes/js/tinymce/themes/advanced/img/icons.gif', | |
onclick : function() |
This file contains hidden or 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 addXhrProgressEvent($) { | |
var originalXhr = $.ajaxSettings.xhr; | |
$.ajaxSetup({ | |
progress: function() { console.log("standard progress callback"); }, | |
xhr: function() { | |
var req = originalXhr(), that = this; | |
if (req) { | |
if (typeof req.addEventListener == "function") { | |
req.addEventListener("progress", function(evt) { | |
that.progress(evt); |
This file contains hidden or 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
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
This file contains hidden or 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 linear interpolator for hexadecimal colors | |
* @param {String} a | |
* @param {String} b | |
* @param {Number} amount | |
* @example | |
* // returns #7F7F7F | |
* lerpColor('#000000', '#ffffff', 0.5) | |
* @returns {String} | |
*/ |
This file contains hidden or 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 | |
/** | |
* Intellimage | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://www.opensource.org/licenses/osl-3.0.php |
This file contains hidden or 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 map = ds_map_create(); | |
var keys = ds_list_create(); | |
var values = ds_list_create(); | |
var num = 10000; | |
var t, k, v; | |
for (var i = 0; i < num; i++) { | |
k = i * 2 + 1; | |
v = irandom(10); | |
ds_list_add(keys, k); | |
ds_list_add(values, v); |
This file contains hidden or 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
/* | |
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets. | |
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there). | |
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ . | |
Known limitations: | |
- it won't be able to take into account some external stylesheets (if CORS isn't set up) | |
- it will produce false negatives for classes that are mentioned in the comments. |
This file contains hidden or 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
#!/bin/bash | |
ffmpeg -rtsp_transport tcp \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/102 \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/202 \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/302 \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/402 \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/502 \ | |
-i rtsp://smartiptv:[email protected]/Streaming/Channels/602 \ | |
-filter_complex " |
This file contains hidden or 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
"Do you have any resources or info you can throw my way so I can better understand what does and doesn't break a batch?" | |
1. changing shader and/or setting uniforms | |
2. changing texture page (handled internally in GM. implicitly changing texture group also causes a batch break, and this too is handled by GM internally) | |
3. changing surface target | |
4. some primitives sometimes (though that may have changed now) | |
5. drawing tilemaps | |
6. draw_clear() | |
7. changing blend mode | |
8. changing matrices |
OlderNewer