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 | |
# -------------------------------------------------------------------------------------------------- | |
# Watches a directory for changes to SCSS (SASS) files, and compiles them to CSS. | |
# | |
# The original SASS implementation is Ruby-based, which requires Ruby to be installed, which can | |
# often be a pain. Many other solutions using `gulp` or other build systems require many more | |
# dependencies, such as Node and `npm`. | |
# | |
# I wanted a fully-native pipeline, both, for performance and ease of deployment. | |
# |
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
me: | |
@if (( `id -u` != 0 )); then { echo "What? Make it yourself."; }; else { echo "Okay."; } fi | |
a: | |
@true | |
sandwich: | |
@echo "Hat-tip to http://xkcd.com/149/" |
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
* { | |
font-family: Helvetica, sans-serif; | |
box-sizing: border-box; | |
} | |
body { | |
height: 100%; | |
background-color: black; | |
color: white; | |
} |
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 | |
/* | |
------------------------------------------------------------------------------- | |
Laptop Theft Protector | |
Version 1.0 | |
Copyright (c) 2006, Manas Tungare | |
http://manas.tungare.name/ | |
------------------------------------------------------------------------------- | |
READ THIS CAFEFULLY: YOU MUST CUSTOMIZE ONE VARIABLE BEFORE USE. | |
------------------------------------------------------------------------------- |
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 | |
// Example: Get a single tweet. | |
$status = getTwitterStatus("manas"); | |
echo($status[0]['message'] . ' - ' . $status[0]['time']); | |
// Example: Get multiple tweets. | |
$statuses = getTwitterStatus("manas", 100); | |
foreach ($statuses as $status) { | |
echo($status['message'] . ' - ' . $status['time']); | |
} |
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 | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |