Skip to content

Instantly share code, notes, and snippets.

View CliffCrerar's full-sized avatar
😎
There is a time to code, and a time to code.

C1I7F05D-C53545 CliffCrerar

😎
There is a time to code, and a time to code.
View GitHub Profile
@CliffCrerar
CliffCrerar / .eslintrc.js
Created August 2, 2018 22:37 — forked from adrianhall/.eslintrc.js
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
@CliffCrerar
CliffCrerar / .json
Created January 31, 2019 10:36
Countries and dailing codes
{
"countryCodes": [
{
"country_code": "AF",
"country_name": "Afghanistan",
"dialling_code": "+93"
},
{
"country_code": "AL",
"country_name": "Albania",
@CliffCrerar
CliffCrerar / gist:2baf85cd5d0722cb431cbd1b26186b48
Created February 8, 2019 18:44
vsCode_usersettings_8_feb_2019
{
"vscode_custom_css.statusbar": true,
"window.zoomLevel": 0,
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.fontWeight": "normal",
"editor.lineHeight": 20,
"terminal.integrated.fontSize": 12,
"asciidecorator.defaultFont": "ANSI Shadow",
"editor.tokenColorCustomizations": {
@CliffCrerar
CliffCrerar / gist:b2b34a525ddfce813e17647a0371bb2a
Created February 8, 2019 18:44
vsCode_usersettings_8_feb_2019
{
"vscode_custom_css.statusbar": true,
"window.zoomLevel": 0,
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.fontWeight": "normal",
"editor.lineHeight": 20,
"terminal.integrated.fontSize": 12,
"asciidecorator.defaultFont": "ANSI Shadow",
"editor.tokenColorCustomizations": {
@CliffCrerar
CliffCrerar / meta-tags.md
Created August 11, 2019 14:38 — forked from infinityarc-admin/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
[
{
"Updated": "1980-01-30T21:03:04.209Z",
"FirstName": "Declan",
"LastName": "Hoppe",
"Email": "Price@mafalda.biz",
"Phone": "454.136.0468",
"CreatedDate": "2001-03-29T05:50:54.244Z",
"Id": 0
},
@CliffCrerar
CliffCrerar / PhoneBookDemo.md
Created September 8, 2019 16:24
phonebookDemo-data-gist

This gist contains the files for the demo app PhoneBookDemo

@CliffCrerar
CliffCrerar / ts-events.json
Last active October 1, 2019 12:11
ts-events
[
{
"eventName": "End-Month Review",
"cardID": "2a48c4e4-cc10-4113-ab3e-1410f542412b",
"createdBy": "preyan@yahoo.com",
"companyID": "69L5PBdCc0KAlp2RdgwcfA",
"companyName": "Jason Test Company Pty (Ltd)",
"countryCode": "ZA",
"countryName": "South Africa",
"taxType": "Type 3",
var email{
content: '/^(([^<>()[\]\\.,;:\s@\']+(\.[^<>()[\]\\.,;:\s@\']+)*)|(\'.+\'))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/';
}
@CliffCrerar
CliffCrerar / sp_KillSessionByDbName.sql
Last active September 24, 2019 12:07
SQL Server kill sessions by database name
CREATE PROCEDURE [dbo].[sp_KillSessionByDbName]
@dbname sysname = ''
AS
BEGIN
-- check the input database name
IF DATALENGTH(@dbname) = 0 OR LOWER(@dbname) = 'master' OR LOWER(@dbname) = 'msdb'
RETURN
DECLARE @sql VARCHAR(30)