Stash current changes
- git > Stash > Stash (Include Untracked)
Create stash as patch
git stash show "stash@{0}" -p > changes.patch
Apply patch
brdocs = { | |
/** | |
* Enum com opções do validador | |
* @readonly | |
* @enum {number} | |
*/ | |
cpfcnpj: { "CPF": 1, "CNPJ": 2, "AMBOS": 3 }, | |
/** | |
* Função que valida CPF e CNPJ de uma só vez. |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
Nuget command line – uninstall package from all projects | |
> Get-Project -All | Uninstall-Package <package name> |
// Tools and addins | |
#addin "nuget:?package=System.Management.Automation&version=6.1.7601.17515" | |
using System.Collections; | |
using System.Management.Automation; | |
using System.Management.Automation.Internal; | |
using System.Management.Automation.Runspaces; | |
using System.Threading; | |
/////////////////////////////////////////////////////////////////////////////// |
var supportsES6 = function() { | |
try { | |
new Function("(a = 0) => a"); | |
return true; | |
} | |
catch (err) { | |
return false; | |
} | |
}(); |
function Update-AssemblyInfoVersionFiles | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string]$productVersion | |
) | |
$buildNumber = $env:BUILD_BUILDNUMBER | |
if ($buildNumber -eq $null) |
// ==UserScript== | |
// @name Steam Key Quick Activator | |
// @namespace http://pedrofracassi.me/ | |
// @version 1.2 | |
// @description Activates Steam Keys Quickly! | |
// @author Pedro Fracassi (http://pedrofracassi.me) | |
// @match https://store.steampowered.com/account/registerkey?key=* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
/// <binding AfterBuild='default' Clean='clean' /> | |
/* | |
This file is the main entry point for defining Gulp tasks and using Gulp plugins. | |
Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 | |
*/ | |
var gulp = require('gulp'); | |
var del = require('del'); | |
var plumber = require('gulp-plumber'); | |
var concat = require('gulp-concat'); |
String.prototype.numbers = function () { | |
'use strict'; | |
var result = ''; | |
if (this.match(/(\d+)/g)) { | |
result = this.match(/(\d+)/g).join(''); | |
} | |
return result; | |
}; | |
( function( $ ) { |