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
| <p>Choose your clock_bg Photo</p> | |
| <!-- choose image file, on choose, automatically set to the canvas --> | |
| <input type="file" id="imageLoader" name="imageLoader"/> | |
| <!-- hide the tool, only show once file is choosen --> | |
| <div id="toolArea" style="display: none;"> | |
| <p>Click on the image to place a marker<br> The markers on the image will show the coordinates value in decimal, while the table below will show the coordinates in Hex value.</p> | |
| <!-- draw image and markers on the canvas here --> | |
| <canvas id="Canvas" width="240" height="240"></canvas> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Datatables Study Demo</title> | |
| <!-- jQuery --> | |
| <script | |
| src="https://code.jquery.com/jquery-3.1.1.min.js" | |
| integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" | |
| crossorigin="anonymous"></script> |
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 | |
| /* Facebook Page Posts Scrapper API created by Afif Zafri. | |
| Fetch/Scrape posts contents of a page without using Facebook API | |
| Usage: http://site.com/api.php?username=CODE , where CODE is the page username | |
| */ | |
| if(isset($_GET['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
| var dates = document.getElementsByClassName("date"); | |
| var totalTime = '00:00:00'; | |
| for(var i=0;i<dates.length;i++) { | |
| totalTime = formatTime(timestrToSec(totalTime) + timestrToSec('00:'+dates[i].innerText)); | |
| } | |
| console.log("Total Time: "+totalTime); | |
| function timestrToSec(timestr) { | |
| var parts = timestr.split(":"); |
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 | |
| $video_url = $_GET['video_url']; | |
| echo get_fb_thumbnail($video_url); | |
| function get_fb_thumbnail($video_url) { | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => $video_url, | |
| CURLOPT_RETURNTRANSFER => true, |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
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 | |
| $attack = "<script>alert('boom');</script>"; | |
| $sanitized = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $attack); | |
| echo $sanitized; | |
| ?> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title>Image Coordinates Generator</title> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta name="robots" content="noindex, nofollow"> | |
| <meta name="googlebot" content="noindex, nofollow"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
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
| { | |
| "Johor": [ | |
| { | |
| "city": "Ayer Baloi", | |
| "zip": "82100", | |
| "lat": 1.587094, | |
| "lng": 103.339187 | |
| }, | |
| { | |
| "city": "Ayer Hitam", |
NewerOlder