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">
@CliffCrerar
CliffCrerar / PhoneBookDemo.md
Created September 8, 2019 16:24
phonebookDemo-data-gist

This gist contains the files for the demo app PhoneBookDemo

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)
@CliffCrerar
CliffCrerar / ph_za_2019.json
Created September 27, 2019 10:55
ph_za_2019.json
{
"meta": {
"code": 200
},
"response": {
"holidays": [
{
"name": "New Year's Day",
"description": "New Year’s Day is celebrated with a blend of both diversity and tradition in countries such as South Africa on January 1 each year.",
"date": {
@CliffCrerar
CliffCrerar / gcreate.sh
Created September 29, 2019 01:58
Create gh repo from the bash command line
#Usage: gcreate userName repoName "Description if any"
gcreate () {
curl -u $1 https://api.github.com/user/repos -d "{\"name\": \"$2\", \"description\": \"$3\"}"
}