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 | |
| class Fetcher | |
| { | |
| private $_torIp = '127.0.0.1'; | |
| private $_torProxyPort = '8118'; | |
| protected function _request($url) |
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 | |
| ini_set("error_reporting", E_ALL & ~E_NOTICE); | |
| ?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>Genetic Algorithm : TSP : PHP Implementation by Thomas Hunter</title> | |
| <style> | |
| body { |
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 assoc_array_map($cb, $arr) { | |
| $new_array = array(); | |
| foreach ($arr as $key => $value) { | |
| array_push($new_array, $cb($key, $value)); | |
| } | |
| return $new_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
| <?php | |
| /* GDriveCRM | |
| Created by Tim Wisniewski (timwis.com) | |
| GDriveCMS allows you to use Google Docs' familiar interface for adding content to a mobile-optimized web page. | |
| Simply create a Google Document with whatever content you want, publish it to the web (in the File menu), | |
| and render it through this script. | |
| 1. Create a document in Google Drive (Google Docs) | |
| 2. Go to File > Publish to the web | |
| 3. Click Start Publishing & check Automatically republish | |
| 4. Grab the document link (URL) in that dialog |
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
| package main | |
| import ( | |
| "io" | |
| "os" | |
| "fmt" | |
| "log" | |
| "bytes" | |
| "image" | |
| "image/png" |
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
| #!/bin/sh | |
| # | |
| # Shell script that configures gnome-terminal to use solarized theme | |
| # colors. Written for Ubuntu 11.10, untested on anything else. | |
| # | |
| # Solarized theme: http://ethanschoonover.com/solarized | |
| # | |
| # Adapted from these sources: | |
| # https://gist.github.com/1280177 | |
| # http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/ |
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
| /* | |
| Heavily inspired by the PHP implementation made by Ahmad Amarullah (available at http://code.google.com/p/php-mail-domain-signer/), with the help of http://phpjs.org/. | |
| Setup: | |
| In dkim-raw-email.js, change the location of your private key and the associatedDomain accordingly to your needs. | |
| Example of use (using aws-lib, https://github.com/mirkok/aws-lib): |
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
| 1. Joomla! | |
| 2. Drupal | |
| 3. Mambo | |
| 4. TYPO3 Enterprise CMS | |
| 5. WebGUI | |
| 6. WordPress | |
| 7. Plone | |
| 8. Xoops | |
| 9. PHP Nuke | |
| 10. eZ Publish |
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 | |
| /** | |
| * Конвертер регулярного выражения | |
| * | |
| * @author Pakhtinov Dmitriy | |
| * @copyright 2012 Pakhtinov Dmitriy | |
| * @data 14.11.2012 | |
| */ | |
| class PCREConverter { |
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
| /* | |
| * WebServer.c | |
| * | |
| * Created on: Nov 3, 2012 | |
| * Author: pavithra | |
| * | |
| * A web server in C language using only the standard libraries. | |
| * The port number is passed as an argument. | |
| * | |
| * http://css.dzone.com/articles/web-server-c |