This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias ga='git add' | |
| alias gaa='git add .' | |
| alias gaaa='git add --all' | |
| alias gau='git add --update' | |
| alias gb='git branch' | |
| alias gbd='git branch --delete ' | |
| alias gc='git commit' | |
| alias gcm='git commit --message' | |
| alias gcf='git commit --fixup' | |
| alias gco='git checkout' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| `${[501, 505, 506, 507, 551, 552, 553, 554, 555, 559, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549][Math.floor(Math.random() * 30)]}${Math.floor(Math.random() * 7677412) + 2322587}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { readdirSync, existsSync } = require('fs'); | |
| const { join, resolve } = require('path'); | |
| const cp = require('child_process'); | |
| const baseDirectory = '.'; // set base directory | |
| const directoryPrefix = ['.']; // set without start with | |
| const lib = resolve(__dirname, baseDirectory); | |
| const argv = process.argv; | |
| let directories = []; | |
| const getDirectories = source => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.from( | |
| { | |
| length: 49, | |
| }, | |
| (v, k) => k + 1 | |
| ) | |
| .sort(() => Math.random() - 0.5) | |
| .slice(0, 6) | |
| .sort((a, b) => a - b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2gua.rainbow-brackets | |
| akamud.vscode-theme-onedark | |
| alexiv.vscode-angular2-files | |
| anseki.vscode-color | |
| chiragpat.tomorrow-and-tomorrow-night-operator-mono-theme | |
| christian-kohler.path-intellisense | |
| CoenraadS.bracket-pair-colorizer | |
| eamodio.gitlens | |
| eg2.tslint | |
| formulahendry.auto-close-tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public sealed class EnumHelper<T> where T : struct, IConvertible | |
| { | |
| public static T ConvertEnum(string data) | |
| { | |
| if (!typeof(T).IsEnum) | |
| throw new ArgumentException("T must be an enumerated type"); | |
| if (string.IsNullOrEmpty(data)) | |
| return (T)Enum.Parse(typeof(T), "None"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Dynamic; | |
| using System.Linq; | |
| namespace Technical | |
| { | |
| internal class Program | |
| { | |
| internal enum ExpandoReturns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.concurrent.locks.ReentrantLock; | |
| import java.lang.*; | |
| public class HelloWorld { | |
| private static ReentrantLock lock = new ReentrantLock(); | |
| private static int count = 0; | |
| public static void main(String[] args) { | |
| System.out.println(Thread.currentThread().getName()); | |
| for (int i = 0; i < 10; i++) { | |
| new Thread("" + i){ | |
| public void run() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare @tableName varchar(200) | |
| declare @columnName varchar(200) | |
| declare @nullable varchar(50) | |
| declare @datatype varchar(50) | |
| declare @maxlen int | |
| declare @sType varchar(50) | |
| declare @sProperty varchar(200) | |
| DECLARE table_cursor CURSOR FOR |
NewerOlder