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 | |
/* | |
easier way to deal with $_POST & $_GET etc: typecast it to an object. | |
$post = (object)$_POST; | |
benefits: | |
- quicker to type (30% faster to type $post->username than to type $_POST['username']) | |
- reduces chance of making syntax mistakes(you have to make sure to match 2 sets of tokens( ' and [ )in the former and 0 in the latter, reducing the likelihood of annoying syntax mistakes. |
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
$isBot = preg_match('/(spider|crawl|curl|python|twitt|bot|google|perl|archiver|monitor|mechanize)/i',$_SERVER['HTTP_USER_AGENT']); |
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 | |
function post($url, $post_array) | |
{ | |
// curl | |
} | |
?> |
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
#!/bin/bash | |
echo $1 | |
newpath=$(echo $1 | sed 's|\\|/|g' | sed 's|:||g' | sed 's|^C|/cygdrive/c|') | |
echo $newpath | |
cd "$newpath" |
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
title | |
tag title | |
content Mindmap | |
block2 | |
style | |
left 370px | |
top 181px | |
width auto | |
padding 15px | |
height auto |
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
title | |
tag title | |
content Coming Soon | |
stylesheet | |
tag link | |
rel stylesheet | |
href site.css | |
container | |
style | |
position absolute |
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
title | |
tag title | |
content {{post.title Post Title}} | |
stylesheet | |
tag link | |
rel stylesheet | |
href site.css | |
container | |
style | |
width 90% |
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
iosViewport | |
content <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" /> | |
title | |
tag title | |
content Coming Soon | |
stylesheet | |
tag link | |
rel stylesheet | |
href site.css | |
dancerCode |
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
name space | |
version 0.8.7 | |
description A lightweight language for objects | |
main ./space.js | |
bin | |
space cli.js | |
scripts | |
test node tests/node-test.js | |
repository | |
type git |
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
> Please don't mistake this question as offensive, but: How many people did you show this to before putting it out in the open? | |
Not offended at all! I showed the paper to somewhere between 20 - 30 people before putting it out there. The paper improved 100x thanks entirely to them, | |
but still, the response was lukewarm(at best). I only have a B.S. in Economics (and barely at that), and have never written | |
a "paper" before, so that might explain some of its "quirks". | |
> The biggest problem of the whole thing is that it doesn't even get its motivation across to me. I read through the blogpost and the paper and I have no idea why I should care. | |
Haha, great point! For many years I've been wrestling with a few core problems: | |
- visual programming |
OlderNewer