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
| ---------------- Old Version : | |
| vol_dB = 20 * ( math.log( vol_log, 10 ) ) | |
| vol_log = math.exp( vol_dB * 0.115129254 ) | |
| ---------------- New Version : | |
| -- Mod from SPK77 | |
| -- http://forum.cockos.com/showpost.php?p=1608719&postcount=6 |
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
| // by jerementor | |
| // https://www.youtube.com/watch?v=e9Qh4_zsSCo | |
| // First create an empty object called obj_camera | |
| // Then, if event sheet : | |
| Global number cameraSpeed = 0.08 | |
| Global number lookAhead = 30 | |
| Global number cameraHeight = 10 |
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
| https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID | |
| https://www.youtube.com/feeds/videos.xml?user=USERNAME | |
| https://www.youtube.com/feeds/videos.xml?playlist_id=YOURPLAYLISTIDHERE | |
| http://www.dailymotion.com/rss/user/USERNAME |
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
| From https://twitter.com/hearthisat/status/685001842246443008 | |
| http://hearthis.at/oembed/?url=https://hearthis.at/krissdek/kriss-dek-good-day-original-mix/&format=xml |
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
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> | |
| # END WordPress |
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
| If specific file and space in file name | |
| https://gist.github.com/X-Raym/f515430e8117e6a87d6f#file-ReaScript%20Lesson%2009%20-%20Preventing%20bugs.lua | |
| spaces : %20 | |
| prefix : #file- | |
| extension : file-name.extension |
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 | |
| function inspect_scripts() { | |
| if (!is_admin()) { | |
| global $wp_scripts, $wp_styles; | |
| echo '<h1>Scripts</h1>'; | |
| echo '<ol>'; | |
| foreach( $wp_scripts->queue as $handle ) : | |
| echo '<li>' . $handle . '</li>'; | |
| endforeach; | |
| echo '</ol>'; |
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 | |
| // Auto Activate EDD License if Custom Field is True -- by X-Raym | |
| function edd_auto_activate_activate_license( $license_id, $download_id, $payment_id ) { | |
| // Only specific download get auto activation (custom field) | |
| if ( ! get_field( 'auto-activate', $download_id ) ) | |
| return false; | |
| $store_url = get_site_url(); // Multilingual site friendly |
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 | |
| $text_array = preg_split( "/\r?\n/", $multiline_text ); // Multilines to array |
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
| -- Time function from http://stackoverflow.com/questions/463101/lua-current-time-in-milliseconds | |
| ------------------------------------------------------------- | |
| -- TEST A | |
| -- Local Function | |
| local function Add( val ) | |
| return val + 1 | |
| end |