Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| # Commands to disable all the annoying features in OSX Lion | |
| # Fork if you've got any more ideas! | |
| # NOTE: most of these commands seem to need a restart to work | |
| # Press and hold (i.e. fix key autorepeating) | |
| defaults write -g ApplePressAndHoldEnabled -bool false | |
| # Window animations | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO |
| require "try-catch" | |
| try { | |
| function() | |
| error('oops') | |
| end, | |
| catch { | |
| function(error) | |
| print('caught error: ' .. error) |
| <?php | |
| if(!isset($argv[1])){ | |
| echo "Usage: ".$argv[0]." (number of iterations)\n"; | |
| exit(1); | |
| } | |
| /** | |
| * Arrays to check | |
| */ | |
| $tests = array( |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; | |
| //------------------------------------------------------------------------- | |
| // WorkArea | |
| //------------------------------------------------------------------------- |
| // This package implements 128-bit ("double double") floating point using | |
| // a pair of 64-bit hardware floating point values and standard hardware | |
| // floating point operations. It is based directly on libqd by Yozo Hida, | |
| // Xiaoye S. Li, David H. Bailey, Yves Renard and E. Jason Riedy. Source: | |
| // http://crd.lbl.gov/~dhbailey/mpdist/qd-2.3.13.tar.gz | |
| package float128 | |
| import ( | |
| "errors" | |
| "fmt" |
| g_LastCtrlKeyDownTime := 0 | |
| g_AbortSendEsc := false | |
| g_ControlRepeatDetected := false | |
| *CapsLock:: | |
| if (g_ControlRepeatDetected) | |
| { | |
| return | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000