python3
and scrapy
(pip install scrapy
)
scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
python3 2format_results.py
############################################################################### | |
# | |
# PHP Syntax Check for Git pre-commit hook for Windows PowerShell | |
# | |
# Author: Vojtech Kusy <wojtha@gmail.com> | |
# | |
############################################################################### | |
### INSTRUCTIONS ### |
<?php if( ! defined('BASEPATH') ) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter 2.1.0 form validation external callbacks. | |
* | |
* This is part of MY_Controller.php in Community Auth, which is an open | |
* source authentication application for CodeIgniter 2.1.0 | |
* | |
* @package Community Auth | |
* @author Robert B Gottier | |
* @copyright Copyright (c) 2011, Robert B Gottier. |
// ==UserScript== | |
// @match https://yourwebsite.com/xyz | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @require http://cdnjs.cloudflare.com/ajax/libs/sugar/1.3/sugar.min.js | |
// ==/UserScript== | |
alert('Hello, I got jQuery included and sugarJs too'); | |
var runEverySecond = function(){ | |
$('p').find('img').attr('width', '0px'); |
/** | |
* Grid directive for angularJS, based on dalcib's Angular Grid https://gist.github.com/2630138 | |
* It's events are more angular-style and it operates on special object NavigationVector. It allows | |
* to select a row and to add custom rows at the bottom (for example to notify, that there are no rows found) | |
* When creating NavigationVector object you should pass the scope in which it will be declared in order | |
* to properly bind $watch expressions. Thanks to this you will be able to update index, selected or even | |
* items properties and other properties will be updated to match the change you made. | |
* | |
* Example: | |
<table ng-grid="" width="100%"> |
// ************************************************************** | |
// password validation | |
// ************************************************************** | |
function checkPassword(pass) { | |
var numbers = pass.match(/\d+/g); | |
var uppers = pass.match(/[A-Z]/); | |
var lowers = pass.match(/[a-z]/); | |
var special = pass.match(/[!@#$%\^&*\+]/); |
var ngAppElem = angular.element(document.querySelector('[ng-app]') || document); | |
window.$injector = ngAppElem.injector(); | |
window.inject = $injector.invoke; | |
window.$rootScope = ngAppElem.scope(); | |
// getService('auth') will create a variable `auth` assigned to the service `auth`. | |
var getService = serviceName => | |
inject([serviceName, s => window[serviceName] = s]); |
// State example: | |
// | |
// $stateProvider | |
// .state('state', { | |
// url: 'state/:id', | |
// template: stateTemplate, | |
// controller: stateController, | |
// // Expose parameters in display names using {:param} syntax | |
// displayName: 'State ({:id})' | |
// }); |
SELECT TOP 20 | |
(SELECT CAST(SUBSTRING(st.text, (qs.statement_start_offset/2)+1, | |
((CASE qs.statement_end_offset | |
WHEN -1 THEN DATALENGTH(st.text) | |
ELSE qs.statement_end_offset | |
END | |
- qs.statement_start_offset)/2) + 1) AS NVARCHAR(MAX)) FOR XML PATH(''),TYPE) AS [TSQL], | |
qs.execution_count AS [#], | |
CAST(qs.total_worker_time/1000./1000. AS numeric(30,1)) AS [cpu sec], | |
CASE WHEN execution_count = 0 THEN 0 ELSE |
// Simple, Useful and Slow | |
// Assorted Reference Statistics Functions | |
// UTF-8 Edition | |
// Shorthands | |
pow = Math.pow | |
sqrt = Math.sqrt | |
pi = Math.PI |