This file contains 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 @table table(id int, strings nvarchar(400)) | |
insert into @table (id, strings) | |
select 1, 'abc,def,ghi' | |
union all | |
select 2, 'jkl' | |
union all | |
select 3, 'mno,pqr' | |
select * from @table |
This file contains 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
// Random 0 to max (excl) | |
const random = (max) => Math.floor(Math.random() * max) | |
// Random between (min incl, max excl) | |
const random = (min, max) => Math.floor(Math.random() * (max - min) + min) | |
// Fill array | |
const arr = new Array(42).fill(0).map(() => random(1, 5)) | |
// Remove duplicates from Array (tip: fallback using indexOf) | |
let chars = ['A', 'B', 'A', 'C', 'B'] |
This file contains 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
#!/bin/sh | |
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
#---------------------------------------------------- | |
# a simple mysql database backup script. | |
# version 2, updated March 26, 2011. | |
# copyright 2011 alvin alexander, http://devdaily.com | |
#---------------------------------------------------- | |
# This work is licensed under a Creative Commons | |
# Attribution-ShareAlike 3.0 Unported License; |
This file contains 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
export const keys = Object.freeze({ | |
'o/': '👋', | |
'</3': '💔', | |
'<3': '💗', | |
'8-D': '😁', | |
'8D': '😁', | |
':-D': '😁', | |
'=-3': '😁', | |
'=-D': '😁', | |
'=3': '😁', |
OlderNewer