Skip to content

Instantly share code, notes, and snippets.

@sk8terboi87
sk8terboi87 / checker.sh
Created December 15, 2013 14:43
Check PHP And Its Related Modules
#!/bin/bash
php_version(){
echo `php -r '$version = phpversion();
echo sprintf("\033[34m%s\033[37m", "$version");'`
}
php_compability_check() {
echo `php -r ' if (version_compare(PHP_VERSION, "5.4", "<")) {
echo sprintf("\033[31m%s\033[37m", "Upgrade PHP!! PHP 5.4 or Greater!");
<!DOCTYPE html>
<html>
<head>
<title>Bad Parts</title>
<script src="shakespeare.js"></script>
<script src="wordsworth.js"></script>
<script type="text/javascript">
console.log(getPoem());
</script>
</head>
@sk8terboi87
sk8terboi87 / index.html
Last active May 11, 2022 06:37
JavaScript Web Worker Example: Fetching Random Content from Wikipedia using Web Workers. http://codelikeapoem.com/2017/03/web-workers-beginners-guide.html
<!DOCTYPE html>
<html>
<head>
<title>Polling Example</title>
<style type="text/css">
.title, .result {
display: inline-block;
padding: 10px;
background-color: #fffeee;
}