Skip to content

Instantly share code, notes, and snippets.

Vladimir Gasic vgashic

Block or report user

Report or block vgashic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View decimal_separator.cs
using System;
using System.Globalization;
using System.Threading;
public class Program
{
public static void Main()
{
string s = ",3";
@vgashic
vgashic / formatNumber.js
Created Apr 9, 2017
JavaScript format number based on pattern
View formatNumber.js
function formatNumber(numbers, pattern){
//var pattern = '(999) 999-9999';
var patternArray = pattern.split('').map(function(x) { return isNumber(x) ? null : x; });
var resultArray = [];
var pos = 0;
for (var i = 0; i < patternArray.length; i++) {
if (patternArray[i] === null) {
@vgashic
vgashic / new_gist_file.sql
Last active Mar 10, 2016
All tables row count (SQL Server)
View new_gist_file.sql
SELECT SUBSTRING(obj.name, 1, 50) AS Table_Name
,ind.rows AS Number_of_Rows
FROM sysobjects AS obj
INNER JOIN sysindexes AS ind ON obj.id = ind.id
WHERE obj.xtype = 'U'
AND ind.indid < 2
AND ind.rows > 0
ORDER BY obj.name
You can’t perform that action at this time.