Skip to content

Instantly share code, notes, and snippets.

View jeystaats's full-sized avatar
🏠
Working from home

Jasper Staats jeystaats

🏠
Working from home
View GitHub Profile
@jdavidbakr
jdavidbakr / TableHeaderGenerator.php
Last active February 20, 2016 10:15
Laravel: Ajax pagination table header generator
<?php
namespace App\Services;
class TableHeaderGenerator {
/**
* Returns an array for the table view's header data that includes sort links
* @param Array $data array of arrays with keys 'label' and 'col'
* @param string $current_sort
@r0adkll
r0adkll / slack.php
Last active December 15, 2015 14:41
Slack Incoming Webhook script for lolcommits plugin "uploldz"
<?php
/***************************************************************************************************
*
* Step 1: Save the sent file locally on the server
*
*/
$file_name = basename($_FILES["file"]["name"]);
$target_file = "images/".basename($_FILES["file"]["name"]);
if (move_uploaded_file($_FILES["file"]["tmp_name"], $target_file)) {
@JeffreyWay
JeffreyWay / routes.sh
Created October 15, 2014 17:21
Add this to your ~/.bashrc file (or anywhere related) to give yourself an easy way to view the routes in your Laravel app, or filter the results down to a particular search query.
function routes()
{
if [ $# -eq 0 ]; then
php artisan route:list
else
php artisan route:list | grep ${1}
fi
}
@staltz
staltz / introrx.md
Last active May 9, 2025 12:50
The introduction to Reactive Programming you've been missing
@koba04
koba04 / app.css
Last active April 1, 2019 08:30
socket.io chat sample by vue.js http://socket.io/get-started/chat/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font: 13px Helvetica, Arial;
}
@sindresorhus
sindresorhus / names.txt
Created February 19, 2014 13:21
1000 awesome random project/release names for your pleasure
chats-conditionate
isomerizing-louma
tipcat-preorder
incipient-mumpishly
xylorimbas-drosophilas
disloyalties-modulates
scoreboards-preselections
tiptop-stummel
also-subovate
stimy-cathodically
@ivanseidel
ivanseidel / page-transition.js
Last active July 3, 2016 09:51
Animation and Transition Controller for CSS3
/*
Copyright 2014 Ivan Seidel
Light controll for animations and transitions
When animating 'fromElement' to 'toElement', with options:
$.transition(toElement, fromElement, options);
$.transition(toElement, options);
$.transition(toElement);
@JeffreyWay
JeffreyWay / gist:6176883
Created August 7, 2013 18:19
Add this to your bash_profile. Now, whenever you need to fetch your ssh-key, just type sshkey, and it'll be copied to your clipboard.
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'"
@linickx
linickx / rktest.php
Created July 24, 2013 20:32
example wordpress_logged_in for root-cookie
<?php
# Either load WordPress : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website
# or Manually define your url like...
$siteurl = "http://www.linickx.com/wordpress";
define( 'COOKIEHASH', md5( $siteurl ) );
$cookiename = "wordpress_logged_in_" . COOKIEHASH;