- copy the file
commit-msgto.git/hooks/commit-msg - make sure your delete the sample file
.git/hooks/commit-msg.sample - Make commit msg executable.
chmod +x .git/hooks/commit-msg - Edit
commit-msgto better fit your development branch, commit regex and error message - Profit $$
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
| Deno |
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
| #!/usr/bin/env bash | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep '\.jsx\?$') | |
| BIN_PATH="$(git rev-parse --show-toplevel)/node_modules/.bin" | |
| eslint() { | |
| ESLINT="$BIN_PATH/eslint" | |
| # Check for eslint |
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 sendEmailTasks = recipientList.Select(async recipient => | |
| { | |
| var message = new MailMessage { To = { recipient }, ... }; | |
| // instantiate a new client for each mail because of this: | |
| // http://www.codefrenzy.net/2012/01/30/how-asynchronous-is-smtpclient-sendasync/ | |
| using (var smtpClient = new SmtpClient()) | |
| { | |
| await smtpClient.SendMailAsync(message); | |
| } |
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
| INSERT INTO northwind.customers (id, company, last_name, first_name, email_address, job_title, business_phone, home_phone, mobile_phone, fax_number, address, city, state_province, zip_postal_code, country_region, web_page, notes, attachments) | |
| SELECT 1, 'Company A' , 'Bedecs' , 'Anna' , NULL, 'Owner' , '(123)555-0100', NULL, NULL, '(123)555-0101', '123 1st Street' , 'Seattle' , 'WA', '99999', 'USA', NULL, NULL, '' FROM dual UNION ALL | |
| SELECT 2, 'Company B' , 'Gratacos Solsona' , 'Antonio' , NULL, 'Owner' , '(123)555-0100', NULL, NULL, '(123)555-0101', '123 2nd Street' , 'Boston' , 'MA', '99999', 'USA', NULL, NULL, '' FROM dual UNION ALL | |
| SELECT 3, 'Company C' , 'Axen' , 'Thomas' , NULL, 'Purchasing Representative', '(123)555-0100', NULL, NULL, '(123)555-0101', '123 3rd Street' , 'Los Angelas' , 'CA', '99999', 'USA', NULL, NULL, '' FROM dual UNION ALL | |
| SELECT 4, 'Company D' , 'Lee' , 'Chris |
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 USER northwind IDENTIFIED BY northwind; | |
| ALTER SESSION SET CURRENT_SCHEMA = northwind; | |
| ALTER USER northwind quota 100M on USERS; | |
| --select * from northwind.customers | |
| /* Table: customers */ | |
| CREATE TABLE northwind.customers ( |
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
| //Javascript for finding latitude and longitude range boundaries. | |
| //Based on the excellent Java example by http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates | |
| var GeoLocation = GeoLocation ? GeoLocation : { | |
| TO_RADIAN: 0.0174532925, | |
| TO_DEGREE: 57.2957795, | |
| EARTH_RADIUS: 6371.01, | |
| TO_MILE: 0.621371192, | |
| TO_KM: 1.609344, | |
| MIN_LAT: function() { return GeoLocation.degreeToRadian(-90) }, |
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
| filDemoMauri |