Skip to content

Instantly share code, notes, and snippets.

View Tjoosten's full-sized avatar
🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
  • 18:32 (UTC +02:00)
  • X @x0rif
View GitHub Profile

Firefox inner outline on buttons

Firefox adds an inner outline to buttons (<input>s and <button>s) on :focus. Apparently it's for accessibility, but its placement seems rather odd. Use this CSS to override it:

input::-moz-focus-inner,
button::-moz-focus-inner {
  padding: 0;
  border: 0;
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require(APPPATH.'/libraries/REST_Controller.php');
class Welcome extends CI_Controller {
function user_get()
{
if(!$this->get('id'))
{
$this->response(NULL, 400);
// -----------------------------------------------------------
/**
* Delete()
*
* @param int $this->uri->segment(3)
*/
function Delete() {
$this->db->where('Emplyees_id')
function Login() {
if(Auth::attempt(array('email' => Input::get('email'), 'password' => Input::get('password')))) {
return Redirect::to($_SERVER['HTTP_REFERER'])
->with('message', 'You are now logged in!');
} else {
return Redirect::to($_SERVER['HTTP_REFERER'])
->with('message', 'Your username/password combination was incorrect')
->withInput();
}
}
// controller:
<?php defined('BASEPATH') OR exit('No direct script access allowed');
// Call the autoload for GitHub API
require_once 'vendor/autoload.php';
class Issues extends CI_Controller {
// Constructor code
@Tjoosten
Tjoosten / cronjob.md
Created December 31, 2014 06:49
A short cron jobs reference

Cron jobs (UNIX)

Syntaxis

.---------------- Minutes (0 - 59)
|  .------------- Hour (0 - 23)
|  |  .---------- Day (1 - 31)
| | | .------- Month (1 - 12) of januari, februari, maart...
@Tjoosten
Tjoosten / gist:dfa5590b66008f6c8958
Last active August 29, 2015 14:12
Ik zal men les niet irriteren
#include <stdion.h>
int main(void) {
int count;
for(count = 1; count <= 500; count +++)
printf ("Ik zal niet op men bank schrijven.");
return 0;
}
models:
function Row_count() {
$Query = $this->db->get('Articles');
return $Query->num_rows();
}
function Advertenties($limit, $start) {
$this->db->select()
->limit($limit, $start);
<?php
/**
* @author Tim Joosten
* @package Ion Auth - Dutch language package
*
* Description: Dutch translation of ion-auth 3.
*/
$lang['Errors'] = array(
@Tjoosten
Tjoosten / Reporter.php
Created January 12, 2015 22:21
GitHub reporter
<?php
/**
* Issue reporter for GitHub (http://www.st-joris-turnhout.be)
* -----------------------------------------------------------
* @author: Tim Joosten
* @license: Closed Source license
* @since: 2015
* @package: GitHub issue reporter
*/