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
/** | |
* A simple snippet to return a stored date from mysql to human readable form | |
*/ | |
$originalDate = "2010-03-21"; | |
$newDate = date("d-m-Y", strtotime($originalDate)); |
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
/** | |
* Original segment author: Patrick Talmadge | |
* Translated to dutch: David Verhage | |
*/ | |
function genTime($timestamp) | |
{ | |
// Get time difference and setup arrays | |
$difference = time() - $timestamp; | |
$periods = array("seconden", "minuten", "uur", "dagen", "weken", "maanden", "jaar"); | |
$lengths = array("60","60","24","7","4.35","12"); |
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 | |
/** | |
* A smooth way of hiding and showing certain elements using jQuery | |
* | |
*/ | |
?> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> |
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
/** | |
* Codeigniter Based | |
* | |
*/ | |
function get_selections($table, $id = 'id', $column = 'name') | |
{ | |
$alert=''; | |
$value= "select * from {$table}"; | |
$result= $this->db->query($value); |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<meta http-equiv="refresh" content="2"> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
.chat-body { | |
margin-bottom: 10px; |
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
$(document).ready(function() { | |
// attempt to kill all Alien spaces and tabs when keyup is initiated | |
$('input#login').keyup(function() { | |
console.log('check input form for spaces'); | |
$(this).val($(this).val().replace(/ +?/g, '')); | |
var value = $.trim( $(this).val() ); | |
$(this).val( value ); | |
}); | |
// if all fails and alien tabs do try to take over, | |
// clean the field when out of focus using blur() |
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
<noscript> | |
Om deze site optimaal te gebruiken is het noodzakelijk om Javascript aan te zetten. | |
</noscript> |
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
/** | |
* Modify the parts you need to get it working. | |
*/ | |
var should = require('should'); | |
var request = require('../node_modules/request'); | |
var io = require('socket.io-client'); | |
var serverUrl = 'http://localhost'; |
OlderNewer