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 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 logger instance that can be used for writing log messages | |
* @param {String} _name The logger's name. This will appear in any log messages produced by this logger | |
* @param {Struct} _bound_values Optional struct of bound values which will be included in all log messages produced by this logger | |
* @param {Struct.Logger} _root_logger The loot logger instance that is this logger's parent | |
* @author Meseta https://meseta.dev | |
*/ | |
function Logger(_name="logger", _bound_values=undefined, _root_logger=undefined) constructor { | |
/* @ignore */ self.__name = _name; | |
/* @ignore */ self.__bound_values = (is_struct(_bound_values) ? _bound_values : {}); | |
/* @ignore */ self.__file_handle = -1; |
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
#region jsDoc | |
/// @func collision_circle_array() | |
/// @desc This function is the same as the collision_circle() function, only instead of just detecting one instance / tile map in collision at a time, it will detect multiple instances or tile maps. | |
/// @param {Real} x1 : The x coordinate of the center of the circle to check. | |
/// @param {Real} y1 : The y coordinate of the center of the circle to check. | |
/// @param {Real} rad : The radius (distance in pixels from its center to its edge). | |
/// @param {Object} obj : Asset or Object Instance or Tile Map Element ID or Array An object, instance, tile map ID, keywords all/other, or array containing these items | |
/// @param {Boolean} prec : Whether the check is based on precise collisions (true, which is slower) or its bounding box in general (false, faster). | |
/// @param {Boolean} notme : Whether the calling instance, if relevant, should be excluded (true) or not (false). | |
/// @param {Array} array : The array to use to store the IDs of colliding instances |
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
/* | |
Scope Rules: | |
Caller == Whoever calls this method/function, is scoped to the caller. This is dependent on if there's an lvalue (lvalue.func()) or not. (for methods, the scope will be undefined). | |
Instance == Regardless of whoever calls this method/function, it's scoped to the instance that declared it and not the caller. (Or if using method, whatever instance that was passed in the scope that's not "undefined") | |
*/ | |
// Declared in a script | |
// Scope == Caller, global (Will work no matter where you call it) | |
function myFunction() { | |
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
/// Transforms a position from one coordinate system to another | |
/// This function presumes you're using GameMaker's native camera/view system and are not | |
/// manually setting custom view/projection matrices. Also if you're drawing your application | |
/// surface yourself then the coordinate transform *may* not be accurate, but it usually is. | |
/// | |
/// N.B. The struct returned from this function is declared as static for the sake of efficiency. | |
/// If you want to store values, don't keep a reference to the struct as it is liable to change! | |
/// | |
/// N.B. This function does NOT take into account view_set_xport() or view_set_yport(). I've not | |
/// seen someone use those functions in many years. |
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
#!/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 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 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 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 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} | |
*/ |
NewerOlder