Skip to content

Instantly share code, notes, and snippets.

View galpratama's full-sized avatar
🎯
Focusing

Galih Pratama galpratama

🎯
Focusing
View GitHub Profile
EnCt20e5a6f3fa758968e5d77f95a6b5fb2ac149224770e5a6f3fa758968e5d77f95aYHJQY/yHegD
RK3SRO1Y+GfHaWBNteeOmqCrXmH+VL0PeeM15gCVNdmezt/Kd8ZCqBv1bAOF7QsHG7euplrhtNBQFm1U
XUwoJBAmAq0pNTP7z2y01iG7Pc+ai1oWyb3TIvBOv/WWxaNYR0m+3kF01BGOEOb8Obcnply7qoNzPNuK
qXh2oeujwZil9nz4gpfBiUWa/7gRN7u/2gY/YTmeUf9C6OrAVN396DGwK9ubEc4aWiEIyeNsxo/JQqm7
3MGhRNW04y2hZ4DUPMp47c42w3OgrUI/3Gj528tSMtfJMoWiH1uuFgdWZJ9OHE4i0Z1uqRB1Z3znVUC+
jDoIugQ1v+f83yGoSdkW8/qHwaO52xYUQVi3lw9B6EG8dtNpOqVoahaZHtvSunfBnkeIVkSHJ8OLkT0T
M9C2YmuuVW9W1qrhXWQPnmp+g/YTxBys8Pa7ntP9cNak2CxVM3+1QLOYGzUF2blOjvVg+zWdQQjt8i5H
wRlKPH80QidSaeYJ7w2ihGnOybhlHj+oXEXySF0qWkEMomP4J/X4yKpk0wnny1ujgqaL3WDagbdw2Jhx
CQZRtlPbOUp9F7rfauvCxu3Q9qwk3l4JB2RIOmjaTjOB3+v+IcXsAjQ8QsB7bwCo/sXhpwCB0IXuq7Ya
qF/SvUEL6khRrNQnbpPJL6CSBwIhtV4Z8EDtyutcnKFaWvp4mKjnD8aPxZwKrwEmkahXKqUnFWocMxqX
@galpratama
galpratama / profile.js
Created November 6, 2015 12:46
Rating User UGo
// Rating Submit by User
$('#ratingForm input').on('change', function() {
var button = $(this).find(".rtg");
var data = new FormData();
data.append('id', $('input[name=shopID]', '#ratingForm').val());
data.append('rate', $('input[name=rating]:checked', '#ratingForm').val());
@galpratama
galpratama / pxtoem-function.scss
Created November 23, 2015 15:45 — forked from ariona/pxtoem-function.scss
Pixel to Em function for SASS
$browser-context: 16;
@function em($pixels, $context: $browser-context) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
@if (unitless($context)) {
$context: $context * 1px;
}
@galpratama
galpratama / sass-responsive-mixin.scss
Created February 25, 2016 11:09 — forked from peschee/sass-responsive-mixin.scss
SASS responsive mixin (bootstrap breakpoints)
/**
* Responsive mixin. The media breakpoints are as defined
* in the twitter bootstrap framework:
*
* - phone
* - tablet-portrait
* - tablet-landscape-desktop
* - large-desktop
*
* Additional parameters for tagetting retina and non-retina
@galpratama
galpratama / variable.scss
Last active June 26, 2016 23:12
Contoh SASS
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
@galpratama
galpratama / demo.sass
Created June 28, 2016 05:30
SASS vs SCSS
$font-stack: Helvetica, sans-serif
$primary-color: #333
body
font: 100% $font-stack
color: $primary-color
nav ul {
margin: 0;
padding: 0;
list-style: none;
}
nav li {
display: inline-block;
}
104.16.119.221 boards.4chan.org
104.16.59.249 i.4cdn.org
@galpratama
galpratama / laravel-tools.md
Created September 17, 2019 02:19
Aplikasi Yang Harus Dipasang

Windows

1. Laragon https://laragon.org/
	1. PHP
	2. MySQL
	3. Composer
	4. PHPMyAdmin
2. Cmder (opsional) https://cmder.net
3. NodeJS (opsional)  https://nodejs.org/en/

macOS

@galpratama
galpratama / ResponseFormatter.php
Created February 19, 2020 11:18
API Response Formatter
<?php
namespace App\Http\Controllers\API;
class ResponseFormatter
{
protected static $response = [
'meta' => [
'code' => 200,
'status' => 'success',