Skip to content

Instantly share code, notes, and snippets.

View widiu7omo's full-sized avatar
🤓
Focused and coding! 🔍💻

Danar Widi widiu7omo

🤓
Focused and coding! 🔍💻
View GitHub Profile
@rajeshisnepali
rajeshisnepali / Dockerfile
Last active May 15, 2023 08:12
php7.3-alpine-composer (Dockerfile)
# Set master image
FROM php:7.3-fpm-alpine
MAINTAINER Rajesh Chaudhary <[email protected]>
# Copy composer.lock and composer.json
#COPY composer.lock composer.json /var/www/
# Set working directory
WORKDIR /var/www
@AlessandroNava
AlessandroNava / .gitignore
Created January 3, 2020 10:12
Flutter app deploy on Github and Google Play Store
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
@esa1975
esa1975 / Compile imwheel on Solus.md
Last active November 5, 2021 09:10
Compile imwheel on Solus
@ihor-lev
ihor-lev / sublime_fix_home_end_keys.md
Last active May 15, 2025 22:48
Fix Sublime Text Home and End key usage on Mac OSX

Sublime Text Home/End keys default functionality jumps to the beginning and end of the file.

Fix Home and End keys to move the cursor to the beginning and end of lines.

Preferences > Key Bindings - User

Adding the following to the array:

{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
@quentin41500
quentin41500 / CartManager.kt
Last active June 8, 2021 12:28
Using Sealed class and LiveData to handle network request through the repository layer.
/**
* Observable manager for saving the [Cart]'s resource information.
*/
class CartManager : LiveData<Resource<Cart?>>() {
init {
value = Success(null)
}
/**
@IhwanID
IhwanID / Converter.kt
Created October 9, 2018 17:38
Format Rupiah dengan kotlin
class Converter {
companion object {
fun rupiah(number: Double): String{
val localeID = Locale("in", "ID")
val numberFormat = NumberFormat.getCurrencyInstance(localeID)
return numberFormat.format(number).toString()
}
}
}
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active June 1, 2025 06:05
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ahmadshobirin
ahmadshobirin / set locale and timezone indonesia in laravel.md
Last active May 30, 2025 07:25
set locale and timezone indonesia in laravel

Open File App\Providers\AppServiceProvider

Change method boot

use Carbon\Carbon;


public function boot()
{
	config(['app.locale' =&gt; 'id']);
@bostrot
bostrot / CustomShowDialog.dart
Last active October 25, 2022 09:25
showDialog with rounded corners
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
@howCodeORG
howCodeORG / algo.py
Created May 12, 2018 01:35
howCode's Simple Genetic Algorithm in Python
import random
population = 200
generations = 0
mutation = 0.01
alphabet = "abcdefghijklmnopqrstuvwxyz! "
target = "subscribe to howcode!"
output = ""
data = []