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
<html> | |
<head> | |
<title>PHP Workshop</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<h1>PHP Workshop</h1> | |
<p id = "special">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. | |
</p> | |
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
[gist id = "{GIST_ID}" file = "{GIST_FILE}"] |
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
<html> | |
<head> | |
<title>Making text unselectable</title> | |
<style> | |
body { | |
*-moz-user-select: none; | |
*-khtml-user-select: none; | |
*user-select: none; | |
} | |
.unselectable { |
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
<html> | |
<head> | |
<title></title> | |
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script> | |
<script type="text/javascript"> | |
YUI().use('node', 'yql', function(Y) { | |
var res = Y.one('#res'), | |
zip = '90210'; |
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
# rsync command to sync two folders | |
rsync --verbose --progress --stats --compress --rsh=ssh \ | |
--recursive --times --links -u --rsh='ssh -p8023' \ | |
--exclude "*.sh" --exclude "*~" --exclude "*.svn" --exclude "*.git" --exclude "nbproject" --exclude ".DS_Store" \ | |
/path/to/local/file/ myserver.org:/path/in/remote/server/ |
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 | |
if (isset($_POST['text']) && $_POST['text'] == 'saveastext') { | |
// some condition on which we should trigger this | |
header('Content-Type: text/plain'); // you can change this based on the file type | |
header('Content-Disposition: attachment; filename="readme.txt"'); | |
// echo the file contents | |
exit(); | |
} | |
?> |
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
/** | |
* The program that changed my life ;) | |
* | |
* @author: Sudar Muthu (http://sudarmuthu.com) | |
*/ | |
(function () { | |
var Sudar = new Person("Sudar"), | |
Archana = new Person("Archana"); |
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
// Using YQL in Dart | |
XMLHttpRequest request = new XMLHttpRequest(); | |
String baseurl = "http://query.yahooapis.com/v1/public/yql?format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&q="; | |
String query = ''' select * from twitter.search where q="${_search.value}" '''; | |
request.open("GET", baseurl + encodeURI(query), true); | |
request.on.load.add((e) { | |
_result.hidden = false; |
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
git clone git://github.com/sudar/gist-it.git | |
git branch plugin |