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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>This is the title of my page</title> | |
| <meta name="description" content="type_your_description_here"> | |
| <!-- FB OG API --> | |
| <meta property="fb:app_id" content="1234567890" /> | |
| <meta property="og:type" content="article" /> | |
| <meta property="og:url" content="http://newsblog.org/news/136756249803614" /> |
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
| function changeDateFormat(dates) { | |
| // Write the code that goes here | |
| const regExp = /^\d{2,4}(\/|-)\d{2}(\/|-)\d{2,4}$/ | |
| const regExpG = /(-|\/)/ | |
| const newArr = []; | |
| for (let i = 0; i < dates.length; i++) { | |
| if(dates[i].match(regExp)===null){ | |
| break; | |
| } else if (dates[i].match(regExp).length > 0) { | |
| newArr.push( |
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
| /***************************************************************************** | |
| < How do you delay functions in JavaScript. /> | |
| 3 Methods: | |
| 1. Callback | |
| 2. Promise | |
| 3. Observable | |
| With Javascript there are always creative ways to do almost any kind of |
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
| #Usage: gcreate userName repoName "Description if any" | |
| gcreate () { | |
| curl -u $1 https://api.github.com/user/repos -d "{\"name\": \"$2\", \"description\": \"$3\"}" | |
| } |
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
| { | |
| "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": { |
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
| [ | |
| { | |
| "PartitionKey": 1234, | |
| "RowKey": "f13a546c-f7f2-44d6-8da7-9b0c1ee1327f", | |
| "Timestamp": "2019-09-20T12:31:24.157Z", | |
| "eventSettingID": "3eb38234-726c-4b22-948b-870cba0433d8", | |
| "reminderSettingID": "9cb43439-1800-4b82-8c2f-1e1c41b42fae", | |
| "eventName": "Mind remind", | |
| "triggerDate": "2019/10/21", | |
| "triggerCriteria": 0, |
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
| 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) |
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
| 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,}))$/'; | |
| } |
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
| [ | |
| { | |
| "eventName": "End-Month Review", | |
| "cardID": "2a48c4e4-cc10-4113-ab3e-1410f542412b", | |
| "createdBy": "[email protected]", | |
| "companyID": "69L5PBdCc0KAlp2RdgwcfA", | |
| "companyName": "Jason Test Company Pty (Ltd)", | |
| "countryCode": "ZA", | |
| "countryName": "South Africa", | |
| "taxType": "Type 3", |