Skip to content

Instantly share code, notes, and snippets.

View NikV's full-sized avatar
🎯
Focusing

Nikhil Vimal NikV

🎯
Focusing
View GitHub Profile
@ronalfy
ronalfy / wp-limit-actions.php
Created July 11, 2015 16:08
WordPress - Limit Actions
<?php
class I_Am_Evil {
private $times = 0;
private $callbacks = array();
private $accepted_args = array();
public function __construct() {
}
public function load() {
global $wp_filter;
@strangerstudios
strangerstudios / pmpro_getMembershipLevelForUser.php
Created March 23, 2015 15:04
Show a member's membership level with Paid Memberships Pro.
if(is_user_logged_in() && function_exists('pmpro_hasMembershipLevel') && pmpro_hasMembershipLevel())
{
global $current_user;
$current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID);
echo 'Membership Level: ' . $current_user->membership_level->name;
}
@veiset
veiset / README.md
Last active February 27, 2016 08:07
python note_analyser | node notecopter.js

Ukulelecopter

A simple python script to analyze microphone data, and some javascript for detecting note patterns. The note patterns will be intercepted as node-ar-drone commands, and passed to the nodecopter.

Requires: nodejs (+ ar-drone) python (+ pyaudio, numpy)

Running the application:

@anchetaWern
anchetaWern / laravel-ums.markdown
Created December 6, 2012 11:14
Building a User Management System in Laravel

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users