Skip to content

Instantly share code, notes, and snippets.

View jioo's full-sized avatar
:octocat:
Grinding

Justine Joshua Quiazon jioo

:octocat:
Grinding
View GitHub Profile
git checkout dev some-file-or-folder
@jioo
jioo / share-git-stash.md
Last active March 13, 2024 14:59
How to export stash as a file, and apply it to another computer

Stash current changes

  • git > Stash > Stash (Include Untracked)

Create stash as patch

git stash show "stash@{0}" -p > changes.patch

Apply patch

@jioo
jioo / gist:4095e35b096f4e5e08b1f55aecf0244a
Created January 2, 2020 13:05
Import VSTS into Gihub repo
https://help.github.com/en/github/importing-your-projects-to-github/importing-a-git-repository-using-the-command-line
@jioo
jioo / git.sh
Last active January 2, 2020 12:57
Share stash to another computer
# Create latest stash into a file
git stash show "stash@{0}" -p > changes.patch
# Apply stash
git apply changes.patch
@jioo
jioo / 2018-to-2022-tax.js
Last active July 3, 2019 16:25
TAX-PH Snippets
import { computation } from './common'
/**
* @var int represents the maximum safe integer in JavaScript
*/
const maxINT = Number.MAX_SAFE_INTEGER;
/**
* ------------------------------------------------------
* Annual Tax Table
;[XDebug]
;; Only Zend OR (!) XDebug
zend_extension="D:/wampstack/php\ext\php_xdebug.dll"
xdebug.remote_autostart = 1
xdebug.remote_enable=true
; xdebug.remote_host=127.0.0.1
; xdebug.remote_port=9000
; xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir= "C:\Windows\Temp"
public class Program
{
public static void Main(string[] args)
{
var seed = args.Contains("/seed");
if (seed)
args = args.Except(new[] { "/seed" }).ToArray();
var host = BuildWebHost(args);
'atom-text-editor':
'alt-shift-F': 'editor:auto-indent'