Skip to content

Instantly share code, notes, and snippets.

View hengkiardo's full-sized avatar

Hengki Sihombing hengkiardo

  • Jakarta, Indonesia
View GitHub Profile
@hengkiardo
hengkiardo / controller.php
Created September 4, 2012 11:24 — forked from og-shawn-crigger/controller.php
Valums AJAX File Uploader for CodeIgniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Ajax_uploader extends CI_Controller {
// ------------------------------------------------------------------------
/**
* Array of allowed file extensions to upload.
*
* @var array
@hengkiardo
hengkiardo / index.html
Created September 21, 2012 09:12 — forked from mfkp/index.html
mailchimp ajax signup form example
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="jquery.ketchup.all.min.js" type="text/javascript"></script>
</head>
<body>
<div id="email">
<span>Enter your email to sign up</span>
<form action="/subscribe.php" id="invite" method="POST">
@hengkiardo
hengkiardo / google-drive-upload-pdf.php
Created October 2, 2012 08:52 — forked from hubgit/google-drive-upload-pdf.php
Upload a PDF file to Google Drive
<?php
require 'google-api/apiClient.php';
require 'google-api/contrib/apiOauth2Service.php';
require 'google-api/contrib/apiDriveService.php';
$pdfFile = 'test.pdf';
// API Console: https://code.google.com/apis/console/
// Create an API project ("web applications") and put the client id and client secret in config.ini.
@hengkiardo
hengkiardo / bootstrap-grid.css
Created October 26, 2012 17:56 — forked from abitgone/bootstrap-grid.css
Grid Overlay for Twitter Bootstrap
/*
* Grid Overlay for Twitter Bootstrap
* Assumes a 1.692em baseline grid (22px/13px)
*/
@media (min-width: 1200px) {
body {
background: -webkit-gradient(linear, top left, bottom left, color-stop(0%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0)));
background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(
@hengkiardo
hengkiardo / index.html
Created October 27, 2012 04:01 — forked from msurguy/index.html
A CodePen by Maksim Surguy. CSS3 Thumbnails - Photo thumbnails of various styles : embossed, cutout, taped, Glossy, reflected, Morph and glow on hover, iphone style icons.
<h4>Inspired by <a href="http://webdesignerwall.com/tutorials/css3-image-styles">http://webdesignerwall.com/tutorials/css3-image-styles</a></h4>
<div class="box normal">
<h3>Normal Image (without jQuery background image wrap)</h3>
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/22.png" ></a>
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/21.png"></a>
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/20.png"></a>
</div>
@hengkiardo
hengkiardo / org.php.php-fpm.plist
Created October 30, 2012 17:30
Install Nginx + PHP-fpm + MySQL on Mac OS X Lion 10.7.2
# First install requirements for BREW
# http://mxcl.github.com/homebrew/
# https://github.com/mxcl/homebrew/wiki/installation
# Requirements
# - An Intel CPU 2
# - OS X 10.5 or higher
# - Command Line Tools for Xcode (https://developer.apple.com/downloads)
# or Xcode with X11 (http://itunes.apple.com/us/app/xcode/id448457090)
# - Java Developer Update (https://connect.apple.com/)
@hengkiardo
hengkiardo / gist:3981736
Created October 30, 2012 17:34
Ubuntu Server 下安装 Nginx + PHP5 + MySQL5
apt-get install unzip nginx mysql-server \
php5-fpm php5-cli php5-mysql php5-curl php5-gd \
php5-idn php-pear php5-imagick php5-imap php5-mcrypt \
php5-memcache php5-mhash php5-ming php5-pspell \
php5-recode php5-snmp php5-sqlite php5-tidy \
php5-xmlrpc php5-xsl
@hengkiardo
hengkiardo / gist:3992991
Created November 1, 2012 10:39 — forked from zenorocha/gist:3924349
CSS3 Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@hengkiardo
hengkiardo / README.md
Created November 3, 2012 05:25 — forked from mikedfunk/README.md
CodeIgniter Pagination for Twitter Bootstrap

This uses Twitter Bootstrap classes for CodeIgniter pagination.

Drop this file into application/config.

@hengkiardo
hengkiardo / MY_Log.php
Created November 3, 2012 05:26 — forked from mikedfunk/MY_Log.php
CodeIgniter MY_Log - fix chmod issues
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* fixes chmod issues
*
* @author Mike Funk
* @email mfunk@christianpublishing.com
*
* @file MY_Log.php
*/