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| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
| #!/bin/bash | |
| TMP_FILE=$(tempfile) | |
| echo $TMP_FILE | |
| #Retrieve list | |
| wget -O $TMP_FILE "http://www.mangareader.net/alphabetical" |& \ | |
| sed -n -e 's|.*[^0-9]\([0-9]\{1,3\}\)%.*|\1|p' | \ | |
| dialog --gauge " Retrieving Index" 6 100 | |
| MANGA_LIST=$(grep "<li><a" $TMP_FILE | sed -e "/_blank/d" -e "s/.*href=\"\(.*\)\">\(.*\)<\\/a>.*/\\1\t\\2/" -e "/^\\/privacy/d;/^\\/search/d;/\\/popular/d;/\\/alphabetical/d;/^#/d;/\\/\t/d") |
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 | |
| /** | |
| * Super-simple script to convert a existing project to use namespaces | |
| * | |
| * @author Hans-Peter Buniat <hpbuniat@googlemail.com> | |
| * @copyright 2012 Hans-Peter Buniat <hpbuniat@googlemail.com> | |
| * @license http://opensource.org/licenses/BSD-3-Clause | |
| */ | |
| class namespaceRefactor { |
| var CleanWordHTML = function ( str ) | |
| { | |
| str = str.replace(/<o:p>\s*<\/o:p>/g, "") ; | |
| str = str.replace(/<o:p>.*?<\/o:p>/g, " ") ; | |
| str = str.replace( /\s*mso-[^:]+:[^;"]+;?/gi, "" ) ; | |
| str = str.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, "" ) ; | |
| str = str.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"" ) ; | |
| str = str.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, "" ) ; | |
| str = str.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"" ) ; | |
| str = str.replace( /\s*TEXT-ALIGN: [^\s;]+;?"/gi, "\"" ) ; |
| /** | |
| * Function to fix native charCodeAt() | |
| * | |
| * Now, we can use fixedCharCodeAt("foo€", 3); for multibyte (non-bmp) chars too. | |
| * | |
| * @access public | |
| * @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/charCodeAt | |
| * @note If you hit a non-bmp surrogate, the function will return false | |
| * @param str String Mixed string to get charcodes | |
| * @param idx Integer Position of the char to get |
| ' Q B a s i c G o r i l l a s | |
| ' | |
| ' Copyright (C) IBM Corporation 1991 | |
| ' | |
| ' Your mission is to hit your opponent with the exploding banana |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| # vi: ft=dosini | |
| [user] | |
| name = Pavan Kumar Sunkara | |
| email = pavan.sss1991@gmail.com | |
| username = pksunkara | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta | |
| [column] |