Skip to content

Instantly share code, notes, and snippets.

View rawaludin's full-sized avatar
:octocat:
Fix stuff

Rahmat Awaludin rawaludin

:octocat:
Fix stuff
View GitHub Profile
@rawaludin
rawaludin / lokasi.js
Last active December 18, 2015 09:29
Lokasi jQuery Note: change podes_webapp URL in production mode If needed, also change provinsi, kabupaten, kecamatan and desa fieldname == Identification== Example : var elprovinsi = "936171X631X19227"; 936171 = Survey ID 631 = Group ID 19227 = Question ID
<script type="text/javascript">
jQuery(document).ready(function($) {
var podes_webapp = "../../index.php/potensi";
var elprovinsi = "936171X631X19227";
var elkabupaten = "936171X631X19229";
var elkecamatan = "936171X631X19231";
var eldesa = "936171X631X19233";
// Create Drop downlist and hide original element
// Elemen Provinsi
@rawaludin
rawaludin / gist:5867676
Created June 26, 2013 14:11
output of brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Applications/Postgres.app/Contents/MacOS/bin/gdal-config
@rawaludin
rawaludin / psd2png.sh
Created July 11, 2013 05:56
Batch Convert PSD to PNG in Mac OS X
#!/bin/bash
for i in *psd
do
name=${i%.psd}
convert "$name.psd[0]" -resize 100% "$name.png"
done
@rawaludin
rawaludin / Belajar-bikin-table.markdown
Created August 29, 2013 02:18
A Pen by Rahmat Awaludin.
@rawaludin
rawaludin / penjelasan.md
Created January 16, 2014 06:42
How to create custome route in service provider in Laravel 4

Kalau mau naruh route di tempat terpisah pakai service provider gan. http://laravel.com/docs/ioc#service-providers

Contohnya, ane kalau pakai class bikinan sendiri di buat di dalam namespace 'Morphaworks'. Struktur project ane kayak gini..

app
- commands
- config
- ....
@rawaludin
rawaludin / composer.json
Created January 17, 2014 08:11
Example laravel composer.json to include bootstrap
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.1.*",
"components/bootstrap": "3.0.2"
},
"require-dev": {
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `counter_customer` (
`total_customer` tinyint NOT NULL
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer` (
`id` int(10) NOT NULL AUTO_INCREMENT,
afasf
asdfaf
adf
-- MySQL dump 10.13 Distrib 5.5.33, for osx10.6 (i386)
--
-- Host: localhost Database: resto
-- ------------------------------------------------------
-- Server version 5.5.33
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
1. Tampilkan menu dengan pesanan terbanyak
2. Tampilkan jumlah pembayaran untuk tiap customer
3. Tampilkan menu dengan pendapatan (pesanan*harga) paling kecil tapi bukan nol
4. Tampilkan menu dengan harga termahal
5. Tampilkan menu dengan harga termurah
6. Tampilkan rata-rata pembayaran tiap customer