This is now an actual repo:
This file contains 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
<!--- | |
<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> |
This file contains 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
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 file contains 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
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,'…','...'); |
This file contains 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
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
This file contains 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 | |
// 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); |
- There are some situations that are difficult to distinguish mechanically, so I now consider all of those cases problematic, even when they are not obviously wrong.
- You should be coding for readability and error resistance.
- The place to express yourself in programming is in the quality of your ideas, and the efficiency of execution. The role of style is the same as in literature. A great writer doesn't express himself by putting the spaces before his commas instead of after, or by putting extra spaces inside his parentheses.
- Many people think they have good reasons for doing things badly.
- [The purpose of JSLint is not to make you feel good about inadequate coding standards.](http://tech.groups.y
- Added changes suggested by Lucas Gonze.
- Added changelog.
- Initial release.
This file contains 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
#!/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 |
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
OlderNewer