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
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
<?php | |
// handy if you write status posts and send them to Twitter | |
function akv3_editor_char_count() { | |
?> | |
<script type="text/javascript"> | |
(function($) { | |
wpCharCount = function(txt) { | |
$('.char-count').html("" + txt.length); |
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
update wp_posts set post_content = replace(post_content,'’','\''); | |
update wp_posts set post_title = replace(post_title,'’','\''); | |
update wp_comments set comment_content = replace(comment_content,'’','\''); | |
update wp_postmeta set meta_value = replace(meta_value,'’','\''); | |
update wp_posts set post_excerpt = replace(post_excerpt,'’','\''); | |
update wp_posts set post_content = replace(post_content,'…','...'); | |
update wp_posts set post_title = replace(post_title,'…','...'); | |
update wp_comments set comment_content = replace(comment_content,'…','...'); | |
update wp_postmeta set meta_value = replace(meta_value,'…','...'); |
COPY (SELECT artist.gid, artist_name.name, url.url FROM url | |
JOIN l_artist_url ON (url.id = l_artist_url.entity1) | |
JOIN artist ON (artist.id = l_artist_url.entity0) | |
JOIN artist_name ON (artist_name.id = artist.name) | |
WHERE url LIKE '%twitter.com%') TO STDOUT WITH CSV; | |
891abb2e-0156-411b-bf60-f4104e71ddfa,SMiLE.dk,http://twitter.com/smiledkmusic | |
aead4c74-d7e1-4960-8cec-bacb86617924,Triobelisk,http://twitter.com/triobelisk | |
89bf7e7f-34ef-4d91-a4f2-4f2bfe8c5c67,Freeze The Atlantic,http://twitter.com/fta_band |
This is now an actual repo:
<!--- | |
<cfset submit_URL = StructNew()> | |
<cfset submit_URL.something = 1> | |
<cfset submit_URL.something2 = 2> | |
<cfset submit_URL.other = "hello world"> | |
<cfoutput> | |
#StructToQueryString(Submit_URL)# | |
</cfoutput> |