Skip to content

Instantly share code, notes, and snippets.

A horrible scraping of metal chains drifted over the fields. Outside, an unnatural fog rendered the moon and stars all but invisible, and the regular hum of insects fell silent.
Thresh approached a ruined hovel. He raised his lantern, not to see his surroundings, but to look inside the glass. The interior of the lantern resembled a starry nightscape with its thousands of tiny green glowing orbs. They buzzed frantically as if trying to escape Thresh’s gaze. His mouth twisted in a grotesque grin, teeth glinting from the glow. Each of the lights was precious to him.
Behind the door, a man whimpered. Thresh sensed his pain, and was drawn to it. He knew the man’s suffering like an old friend.
Thresh had only appeared to the man once, decades ago, but since then the spectre had taken everyone the man held dear: from his favorite horse to his mother, brother, and recently a manservant who had become a close confidant. The specter made no pretence of natural deaths; he wanted the man to know who caused each loss.
$.fn.serializeObject = function(){
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
} else {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
@media screen and (min-width: 769px){
.on-mobile {
display: none !important;
}
<?php
$n = 4;
if($n % 2 == 0)
$par = true;
else
$par = false;
<?php
$resultado = false;
if(isset($_POST['enviar']) && $_POST['enviar'] == 1){
$resultado = true;
$a = $_POST['a'];
$b = $_POST['b'];
$c = $_POST['c'];
window.__debug = true;
window.__webroot = 'http://localhost/web/';
// Este es simplemente un wrapper para JQuery.Ajax
function doAjaxRequest(url, type, data, callback, failback){
window.__debug && console.log('loading module data', url);
var request = $.ajax({
type: type,
url: window.__webroot + url,
data: { data : data },
<html>
<body>
<select id="currency" required="required" class="form-control">
<option value="1">Boliviano (Bs.) [ 6.96 ]</option>
<option value="2">Dolar americano ($USD) [ 6.98 ]</option>
</select>
<input id="amount" type="number" value="0.00" />
<input id="literal" type="text" value="" readonly="readonly" />
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SIGEM v2.1</title>
<link rel="icon" type="image/x-icon" href="{{ webroot }}favicon.ico">
<script id='__init__' type="text/javascript" data-webroot='{{ webroot }}' data-module='{{ module }}' src='{{ webroot }}{{ module }}js/init.js' data-debug='{{ debug }}'></script>
</head>
</html>
wmic /output:C:\InstallList.txt product get name,version,caption,description
<?php
/*
* pgBackupRestore PHP Class Benchmark Example
* for php-cli
*
* usage:
* php -q example.php - Perform both backup and restore
* php -q example.php backup - Perform backup
* php -q example.php restore - Perform restore
*