Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| ply_url = 'https://pypi.python.org/packages/source/p/ply/ply-3.4.tar.gz' | |
| slimit_url = 'https://pypi.python.org/packages/source/s/slimit/slimit-0.8.1.zip' | |
| print 'Downloading SlimIt...' | |
| from urllib import urlretrieve | |
| import tarfile | |
| import zipfile | |
| import shutil | |
| import os | |
| try: |
| if [[ -z $PS1 ]] # no prompt? | |
| ### if [ -v PS1 ] # On Bash 4.2+ ... | |
| then # non-interactive | |
| ... | |
| else # interactive | |
| ... | |
| fi |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| new function() | |
| { | |
| /** | |
| * Execute Macro | |
| * | |
| * @returns {void} | |
| */ | |
| this.exec = function() | |
| { |
| # -*- coding: utf-8 -*- | |
| # test_docstrings.py | |
| import pytest | |
| def test_lambdas(): | |
| # Create a lambda and test it | |
| doubler = lambda x: " ".join([x, x]) | |
| assert doubler("fun") == "fun fun" | |
| # Add a docstring to the lambda |
| /** | |
| * When browser supports inline pdfs | |
| * There is no need to append a large jquery plugin that displays them inline. | |
| * | |
| * You can actually use an iframe (and style it appropriately) | |
| * or a link whenever inline PDF viewing is not supported | |
| * | |
| * This function is fairly simple and it's only for demo purposes | |
| */ | |
| function appendPdf(id, url) { |
| # Simple demo of playing a looping sound using the (currently undocumented) sound.Player class | |
| import sound | |
| import os | |
| from scene import * | |
| class MyScene (Scene): | |
| def setup(self): | |
| self.player = sound.Player(os.path.expanduser('~/Pythonista.app/Beep.caf')) | |
| self.player.number_of_loops = -1 #repeat forever |
The plan is to create a pair of executables (ngrok and ngrokd) that are connected with a self-signed SSL cert. Since the client and server executables are paired, you won't be able to use any other ngrok to connect to this ngrokd, and vice versa.
Add two DNS records: one for the base domain and one for the wildcard domain. For example, if your base domain is domain.com, you'll need a record for that and for *.domain.com.
| <a href="http://lemonly.com/work/42-towel-day-infographic" title="42: Life, The Universe, & Everything – A Towel Day Infographic by Lemonly"> | |
| <img src="http://lemonly.com/wp-content/uploads/2013/05/Towel_Day-42-Infographic-960x2178.jpg"style="max-width: 100%" alt="42: Life, The Universe, & Everything – A Towel Day Infographic Design by Lemonly" /> | |
| </a> | |
| Learn more about <a href="http://lemonly.com/work/42-towel-day-infographic">Towel Day </a> and <a href="http://lemonly.com">Infographic Design</a> from Lemonly. |
| <a href="http://lemonly.com/work/celebrating-towel-day-may-25-2012" title="Don't Panic, Use a Towel Day Infographic"> | |
| <img src="http://lemonly.com/wp-content/uploads/2012/05/Towel-day-Infographic2.jpg"style="max-width: 100%" alt="Don't Panic Use A Towel Day Infographic Design by Lemonly" /> | |
| </a> | |
| Learn more about <a href="http://lemonly.com/work/celebrating-towel-day-may-25-2012">Towel Day </a> and <a href="http://lemonly.com">Infographic Design</a> from Lemonly. |