Skip to content

Instantly share code, notes, and snippets.

View dankerizer's full-sized avatar
:octocat:
kerjaTerus

Hadie Danker dankerizer

:octocat:
kerjaTerus
View GitHub Profile
@dankerizer
dankerizer / vt_resize.php
Created September 16, 2012 16:16 — forked from seedprod/vt_resize.php
Resize WordPress images on the fly vt_resize w/ multisite support
<?php
/*
* Resize images dynamically using wp built in functions
* Victor Teixeira
*
* php 5.2+
*
* Exemplo de uso:
*
* <?php
/*
For more detailed instructions on how to use this script, sign up with your email here:
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans
DISCLOSURE: This javascript runs in your browser pretending to be you
looking through your page fans. Facebook should have no problem with this,
but who knows if they will think it is strange to see you looking through
all your fans so quickly (the script waits 3s before requesting each page).
I've had no problem running this so far for 1000s of page fans, but I
License Key PhpStorm 8
User Name : EMBRACE
===== LICENSE BEGIN =====
43136-12042010
00002UsvSON704l"dILe1PVx3y4"B3
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh
gd1BebYc5U"6OxDbVsALB4Eb10PW8"
===== LICENSE END =====
<?PHP
/**
* Spintax - A helper class to process Spintax strings.
* @name Spintax
* @author Jason Davis - https://www.codedevelopr.com/
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
*/
class Spintax
{
public function process($text)
@dankerizer
dankerizer / custom_user_fields.php
Last active March 21, 2017 19:32
add custom WordPress user fields
<?php
/**
* ampinstant Project
* @package ampinstant
* User: dankerizer
* Date: 18/03/2017 / 03.36
*/
function wpinstant_extra_profile_fields( $user ) { ?>
@dankerizer
dankerizer / social.svg
Created March 18, 2017 16:59
social.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dankerizer
dankerizer / download.svg
Last active March 19, 2017 15:59
download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dankerizer
dankerizer / wordpress-last-update-rss.php
Created March 27, 2017 07:18
wordpress-last-update-rss.php
<?php
/**
* Template Name: RSS - Recently Updated
*/
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'orderby' => 'modified',
'order' => 'DESC',
'ignore_sticky_posts' => '1',
<div id="disqus_thread"></div>
<script>
window.addEventListener('message', receiveMessage, false);
function receiveMessage(event)
{
if (event.data) {
var msg;
try {
msg = JSON.parse(event.data);
} catch (err) {