Skip to content

Instantly share code, notes, and snippets.


Anton Setiawan antonmaju

Block or report user

Report or block antonmaju

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
antonmaju / gform_s3_uploader.php
Last active Oct 12, 2018
Gravity form filter to handle file upload integration with WP Offload S3 Lite plugin. Adapted from
View gform_s3_uploader.php
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
require_once WP_CONTENT_DIR.'/plugins/amazon-web-services/vendor/aws/aws-autoloader.php';
use \Aws\S3\S3Client;
add_filter('gform_upload_path', 'gform_change_upload_path', 10, 2);
add_action('gform_after_submission', 'gform_submit_to_s3', 10, 2);
//change gravity form upload path to point to S3
View Hello World 3.nsi
!define PRODUCT_NAME "Hello World 2"
!include "MUI.nsh"
!include "LogicLib.nsh"
; MUI Settings
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\user.ico"
; Language files
antonmaju / container.js
Created Mar 3, 2014
Experiment: Angular-Like Simple Dependency Injection
View container.js
function Container(opt){ = [];
this.owner = opt.owner || window;
Container.prototype = {
You can’t perform that action at this time.