This file has been truncated, but you can view the full file.
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
| import random | |
| def random_words(num, separator='-'): | |
| """ | |
| Return `num`-random concatinated to each other. | |
| They will be joined by `separator` | |
| """ | |
| words = [] |
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
| -- mathlib.lua | |
| --[[ | |
| Maths extension library for use in Corona SDK by Matthew Webster. | |
| All work derived from referenced sources. | |
| twitter: @horacebury | |
| blog: http://springboardpillow.blogspot.co.uk/2012/04/sample-code.html | |
| code exchange: http://code.coronalabs.com/search/node/HoraceBury | |
| github: https://gist.github.com/HoraceBury |
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
| EXECUTABLE=executable-name | |
| WINDOWS=$(EXECUTABLE)_windows_amd64.exe | |
| LINUX=$(EXECUTABLE)_linux_amd64 | |
| DARWIN=$(EXECUTABLE)_darwin_amd64 | |
| VERSION=$(shell git describe --tags --always --long --dirty) | |
| .PHONY: all test clean | |
| all: test build ## Build and run tests |
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
| //Simulation of the Birthday Paradox | |
| //Find no. files needed for chance of a single collision | |
| package main | |
| import "fmt" | |
| import "math" | |
| func main() { | |
| var BITS float64 = 512 |
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 | |
| $compressed = array( | |
| ".0" => "Hacha Split Archive File", | |
| ".000" => "DoubleSpace Compressed File", | |
| ".7z" => "7-Zip Compressed File", | |
| ".7z.001" => "7-Zip Split Archive Part 1 File", | |
| ".7z.002" => "7-Zip Split Archive Part 2 File", | |
| ".a00" => "ALZip Second Split Archive File", | |
| ".a01" => "ALZip Third Split Archive File", |
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 build_calendar($month, $year) { | |
| $daysOfWeek = array('S','M','T','W','T','F','S'); | |
| $firstDayOfMonth = mktime(0,0,0,$month,1,$year); | |
| $numberDays = date('t',$firstDayOfMonth); | |
| $dateComponents = getdate($firstDayOfMonth); | |
| $monthName = $dateComponents['month']; | |
| $dayOfWeek = $dateComponents['wday']; | |
| $calendar = "<table class='calendar table table-condensed table-bordered'>"; |
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 ( | |
| "bytes" | |
| "crypto/ecdsa" | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "crypto/x509/pkix" |
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 | |
| /* | |
| ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| :: Formerly known as::: | |
| :: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu | |
| :: | |
| :: This class is a rewritten 'GifMerge.class.php' version. | |
| :: | |
| :: Modification: |
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 pre_print_r($var){ | |
| echo "<pre>"; | |
| print_r($var); | |
| echo "</pre>"; | |
| } | |
| function Bigrams($word){ |
NewerOlder