Skip to content

Instantly share code, notes, and snippets.

@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@apathetic
apathetic / gist:3648737
Created September 6, 2012 00:31
Wordpress: add radio button to admin Users table
/*
* Add a column to the Users table, with a radio button
* The radio button updates a usermeta field via ajax
*/
add_filter( 'manage_users_columns', 'add_display_column');
function add_display_column( $columns){
$columns['display_as'] = 'Display as';
return $columns;
}
@msurguy
msurguy / List.md
Last active July 2, 2026 11:32
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@johnhout
johnhout / Readme.md
Last active June 20, 2024 19:02
Laravel dutch validation translation file.
@gedankennebel
gedankennebel / gist:a4c9367cda02ad7e826f
Created November 4, 2015 17:47 — forked from bergantine/gist:5243223
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
filter: grayscale(0%);
}
@joepie91
joepie91 / getting-started.md
Last active July 2, 2026 21:58
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!

@duikb00t
duikb00t / gist:d16820bacf4b78425cde
Created November 9, 2015 14:38 — forked from gedankennebel/gist:a4c9367cda02ad7e826f
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
filter: grayscale(0%);
}
@odan
odan / php-pdo-mysql-crud.md
Last active December 8, 2020 23:24
Basic CRUD operations with PDO and MySQL
<?php
namespace App\Http\Controllers;
use App\Services\Interfaces\ExportServiceInterface as ExportService;
class ExportController extends Controller
{
protected $es;