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
| import requests | |
| import click | |
| import sys | |
| def fail(reason): | |
| click.echo(click.style('[!] %s' % reason, fg='red'), err=True) | |
| sys.exit(111) | |
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
| let removeNotUpperCase = (array) => { | |
| for (var key in array) { | |
| return (array[key][0] == array[key][0].toUpperCase()) ? true : false; | |
| } | |
| } | |
| let array = ['Mr', 'CaT', 'is', 'not', 'best', 'He', 'Is', 'Best', 'Of', 'Course']; | |
| console.log(array.filter(removeNotUpperCase)); |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Solving sum</title> | |
| <style> | |
| .external { | |
| background-color: yellow |
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
| Element.prototype.empty = function () { | |
| while (this.firstChild) { | |
| this.removeChild(this.firstChild); | |
| } | |
| } | |
| var removeNonUpperCaseElementInArray = function (array) { | |
| for (var key in array) { | |
| return (array[key][0] == array[key][0].toUpperCase()) ? true : false; | |
| } |
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
| // | |
| Element.prototype.closest = function (selector) { | |
| if (selector[0] == '.') { | |
| var className = selector.slice(1); | |
| if (this.parentNode && this.parentNode.classList.contains(className)) { | |
| return this.parentElement; | |
| } else if (this.previousSibling && this.previousSibling.classList.contains(className)) { | |
| return this.previousElementSibling; | |
| } else if (this.nextSibling && this.nextSibling.classList.contains(className)) { |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Dynamic components</title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> |
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
| * { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| padding: 0; | |
| margin: 0; | |
| font-family: 'Roboto', sans-serif; | |
| } |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Vue ordering</title> | |
| </head> | |
| <body> |
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
| import Vue from 'vue'; | |
| import Vuex from 'vuex'; | |
| import axios from 'axios'; | |
| import notes from '../api'; | |
| Vue.use(Vuex); | |
| const notesStore = new Vuex.Store({ | |
| state: { | |
| notes: [], |
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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| Version: GnuPG v1 | |
| mQMuBFrkVc4RCACp9eow0Qo/XMqxMM/aTQjdLzKbliSpUKGFoZLhlDBauV1e1V0K | |
| Y9FAI0XNoGFhitzkhXEUDDrv3boV0DoKy1fGbZ3RwYY6EpPrnehORJFEIRL361PV | |
| eVQpZbgx2yhJF5OiyDa47YPUnFEQNK8i5dBkQ7hf/2EkRJKs2CmC8up8b7odgiuc | |
| J18IK/78s49Tbelqr/hq4gozgKd/3ozxh7dT0FOiHUyLuTopicRCYTWaV88J0WH6 | |
| ivH9YQW4BGRgwikmgbaSceWDeG7GxFwMm+w4RwoaNkSq0+2guTwCGcyhAUw2vBwS | |
| PoOe4fHXHQAby7MI02CzvuCzJ+jlIvQofCerAQD5nvBI698Ai/3ZfGFztYjjU09v | |
| Nd//aizjneNHz/CZTQf+NAc+R1M7veMZv1U3kiSi4NlDZB6SPMH2Lc6AgFet0IBO |