PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
| # ---------------------------------------------------------------------- | |
| # 5G BLACKLIST/FIREWALL (2013) | |
| # @ http://perishablepress.com/5g-blacklist-2013/ | |
| # ---------------------------------------------------------------------- | |
| # ---------------------------------------------------------------------- | |
| # 5G:[QUERY STRINGS] | |
| # ---------------------------------------------------------------------- | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On |
| angular.module('test', []) | |
| .directive('placeholder', function($timeout){ | |
| var i = document.createElement('input'); | |
| if ('placeholder' in i) { | |
| return {} | |
| } | |
| return { | |
| link: function(scope, elm, attrs){ | |
| if (attrs.type === 'password') { | |
| return; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| html { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| body { |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| function onFormSubmit(e) { | |
| var to_email = "YOUREMAIL@YOURCOMPANY.COM"; | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var spreadsheet_name = ss.getName(); | |
| var sheet = ss.getSheets()[0]; | |
| var columns = sheet.getRange("A1:U1").getValues()[0]; | |
| var email_subject = "New response for [" + spreadsheet_name + "]"; | |
| var email_body = "Spreadsheet: " + spreadsheet_name + "\r\n\r\n"; | |
| var email_body_html = "<p><b>Spreadsheet: " + spreadsheet_name + "</b></p>"; |
| (* | |
| * Finder Open iTerm Here - v1.0.2 - 4/14/2011 | |
| * http://benalman.com/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Dual licensed under the MIT and GPL licenses. | |
| * http://benalman.com/about/license/ | |
| *) | |
| tell application "Finder" |