This file contains hidden or 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 | |
class user { | |
public $name = 'nfreader'; | |
public $userid = 1; | |
public function displayName() { | |
echo $this->name; | |
} | |
} |
This file contains hidden or 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
<!-- Paste into the address bar under Chrome or Firefox --> | |
data:text/html,<html><body style="margin:0; padding: 0;"><iframe id="vid1" src="http://www.youtube.com/embed/T0sHvtRaGe0" frameborder="0"></iframe><iframe id="vid2" src="http://www.youtube.com/embed/jrZcAsPKK74" frameborder="0"></iframe><iframe id="vid3" src="http://www.ustream.tv/embed/16555296?v=3&wmode=direct" frameborder="0"></iframe><iframe id="vid4" src="http://www.ustream.tv/embed/16573315?v=3&wmode=direct" frameborder="0"></iframe></body></html><script>for (i=1;i<=4;i++){ document.getElementById("vid"+i).height=50+"%";document.getElementById("vid"+i).width= 50+"%"; }</script> |
This file contains hidden or 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 | |
//Shows a big red banner to administrative users if search engines are blocked on a Wordpress site | |
function enginesBlocked() { | |
global $wpdb; | |
if (current_user_can('manage_options')) { | |
$table = $wpdb->prefix . "options"; | |
if ($wpdb->get_var("SELECT option_value FROM $table WHERE option_name = 'blog_public'") == 0) { | |
echo '<div style="background:#C0392B; color: white; padding: 5px; border; 2px solid #E74C3C; width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; font-size: 32px; text-align: center;">Search Engines Blocked!</div>'; | |
} | |
} |
This file contains hidden or 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
SELECT ssim_commod.name, | |
COUNT(CASE WHEN ssim_spob.techlevel >= ssim_commod.avail THEN 1 ELSE NULL END) AS spobs, | |
((sum(ROUND((ssim_commod.baseprice * (ssim_commod.avail / ssim_spob.techlevel) / ssim_commodspob.supply) * 2000)))/(COUNT(CASE WHEN ssim_spob.techlevel >= ssim_commod.avail THEN 1 ELSE NULL END))) AS avgprice, | |
((sum(ssim_commodspob.supply))/(COUNT(CASE WHEN ssim_spob.techlevel >= ssim_commod.avail THEN 1 ELSE NULL END))) AS avgsupply | |
FROM ssim_commod | |
LEFT JOIN ssim_commodspob ON ssim_commod.id = ssim_commodspob.commod | |
LEFT JOIN ssim_spob ON ssim_spob.id = ssim_commodspob.spob | |
WHERE ssim_spob.techlevel >= ssim_commod.avail | |
GROUP BY ssim_commod.id |
This file contains hidden or 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
A - ACCEPT, AFFECT, AIR, AWLS, APE | |
B - BATMAN, BALLS | |
C - CZAR | |
D - DJANGO | |
E - EWE, EYE, EFFECT, EXCEPT, EYJAFJALLAJOKULL | |
F - FIVE, FATMAN | |
G - GORGE, GRAPE, GNU, GNAT | |
H - HARE, HERMIONE, HOLE | |
I - I, IO | |
J - JULIO |
This file contains hidden or 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
.flag{display:inline-block;width:16px;height:16px;line-height:16px;vertical-align:text-top}.flag-abkhazia{background:url("img/flags-iso/shiny/16/_abkhazia.png") no-repeat top left transparent}.flag-british-antarctic-territory{background:url("img/flags-iso/shiny/16/_british-antarctic-territory.png") no-repeat top left transparent}.flag-commonwealth{background:url("img/flags-iso/shiny/16/_commonwealth.png") no-repeat top left transparent}.flag-england{background:url("img/flags-iso/shiny/16/_england.png") no-repeat top left transparent}.flag-gosquared{background:url("img/flags-iso/shiny/16/_gosquared.png") no-repeat top left transparent}.flag-mars{background:url("img/flags-iso/shiny/16/_mars.png") no-repeat top left transparent}.flag-nagorno-karabakh{background:url("img/flags-iso/shiny/16/_nagorno-karabakh.png") no-repeat top left transparent}.flag-nato{background:url("img/flags-iso/shiny/16/_nato.png") no-repeat top left transparent}.flag-northern-cyprus{background:url("img/flags-iso/shiny/16/_northern-cyprus.p |
This file contains hidden or 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
.flag { | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
line-height: 16px; | |
vertical-align: text-top; | |
} | |
.flag-AD {background: url(img/flags-iso/16/AD.png) no-repeat top left transparent;} | |
.flag-AE {background: url(img/flags-iso/16/AE.png) no-repeat top left transparent;} |
This file contains hidden or 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 | |
PRINTER = 192.168.1.65; | |
curl http://192.168.1.65/SSI/supply_status_info.htm | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' > /tmp/printer; | |
BLACK=`grep -A 1 "Black Print Cartridge" /tmp/printer | grep %` | |
echo Black: $BLACK; | |
YELLOW=`grep -A 1 "Yellow Print Cartridge" /tmp/printer | grep %` |
This file contains hidden or 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
spc-alert.php | |
Requirements | |
---- | |
PHP with GD library | |
Bootstrap.min.css (optional) | |
Usage | |
---- |
This file contains hidden or 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
comment { | |
color:#000000; | |
} | |
constant.numeric { | |
color:#000000; | |
} | |
constant.numeric.keyword { | |
color:#000000; |