Skip to content

Instantly share code, notes, and snippets.

View galpratama's full-sized avatar
🎯
Focusing

Galih Pratama galpratama

🎯
Focusing
View GitHub Profile
@galpratama
galpratama / README.md
Created November 13, 2025 05:20 — forked from RuiNelson/README.md
How to Use GLM Coding Plan and Claude Pro/Max Simultaneously with Claude Code on macOS

Who is this script for?

For those who have a Claude (Anthropic) account and a GLM Coding Plan (Z.ai) account and want to use Claude Code for both.

What does this script solve?

On macOS, Claude Code stores access credentials in the Keychain (macOS Keychain is a secure database that the operating system provides to applications for storing secrets). This makes the setup more secure but less programmatically configurable.

How does this script solve this problem?

@galpratama
galpratama / app.blade.php
Created March 17, 2021 15:54
Laravel Datatables Snippet
<!--- Tambahkan setelah app.css --->
<link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" rel="stylesheet">
<link href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.dataTables.min.css" rel="stylesheet">
<style>
/*Form fields*/
.dataTables_wrapper select,
.dataTables_wrapper .dataTables_filter input {
color: #4a5568; /*text-gray-700*/
padding-left: 1rem; /*pl-4*/
padding-right: 1rem; /*pl-4*/
@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',
@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

104.16.119.221 boards.4chan.org
104.16.59.249 i.4cdn.org
nav ul {
margin: 0;
padding: 0;
list-style: none;
}
nav li {
display: inline-block;
}
@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
@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 / 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 / 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;
}