This file contains 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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains 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
alefragnani.Bookmarks | |
alexkrechik.cucumberautocomplete | |
andrejunges.Handlebars | |
bajdzis.vscode-database | |
batisteo.vscode-django | |
christian-kohler.npm-intellisense | |
CoenraadS.bracket-pair-colorizer | |
dariofuzinato.vue-peek | |
dbaeumer.jshint | |
dbaeumer.vscode-eslint |
This file contains 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
async function poll(fn, fnCondition, ms, attemptsLimit) { | |
let attempts = 0; | |
let result = await fn(); | |
while (fnCondition(result) && attemps < attemptsLimit) { | |
await wait(ms); | |
result = await fn(); | |
attempts++; | |
} | |
return result; | |
} |
This file contains 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
def escape_csv(user_generated_string): | |
""" | |
CSV injection esacaping for Python. Excel treats a string as active content when it encounters a | |
"trigger" character at the start of the string. This method returns the string with | |
the triger character escaped. | |
""" | |
if user_generated_string[0] in ('@','+','-', '='): | |
user_generated_string = "'" + user_generated_string |
This file contains 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 applyChanges() { | |
this.isSaving = true; | |
for (const key of Object.keys(this.buffer)) { | |
this[key] = this.buffer[key]; | |
} | |
this.buffer = {}; | |
delete this.isSaving; | |
} | |
function rollback() { |
OlderNewer