I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
| # Rename mp3 files to naming convention of no number and no special character and hence making your music library cool again to read | |
| # run this file in using terminal in music directory by command ./Mp3FileNameBeautify.sh | |
| # and you are welcome to contribute, customize or whatever. | |
| # suggestions are welcomed | |
| # by - HARSH BHATIA | |
| for i in *.mp3; | |
| do | |
| src=$i | |
| # remove mp3 from name | |
| tgt=$(echo $i | sed -E 's/(.mp3)//g') |
| "use strict"; | |
| var fs= require('fs'); | |
| var Promise = require('bluebird'); | |
| var parse= Promise.promisify(require('csv-parse')); | |
| var file = fs.readFileSync('test.csv', 'utf8'); | |
| var headerKeys; | |
| var options ={ | |
| trim: true, |
| import sys | |
| # | |
| # ParserInput | |
| # | |
| # This class represents the input data and the current | |
| # position in the data. | |
| # | |
| # Brief note about 'max_position': |
| #!/usr/bin/env ruby | |
| require 'selenium-webdriver' | |
| wd = Selenium::WebDriver.for :remote, url: 'http://10.3.1.7:4444/wd/hub', desired_capabilities: :chrome | |
| wd.navigate.to 'https://snipt.net/restrada/python-selenium-workaround-for-full-page-screenshot-using-chromedriver-2x/' | |
| # Get the actual page dimensions using javascript | |
| # | |
| width = wd.execute_script("return Math.max(document.body.scrollWidth, document.body.offsetWidth, document.documentElement.clientWidth, document.documentElement.scrollWidth, document.documentElement.offsetWidth);") |
| { | |
| "keys": ["tab"], | |
| "command": "expand_abbreviation_by_tab", | |
| // put comma-separated syntax selectors for which | |
| // you want to expandEmmet abbreviations into "operand" key | |
| // instead of SCOPE_SELECTOR. | |
| // Examples: source.js, text.html - source | |
| "context": [ | |
| { |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');It's getting to that point. All the major evergreen browsers have (mostly) functional class keyword. But what does this mean for unit tests and the ability to stub constructors? In short, the answer is 'no'.
Many will tell you that es6 classes are just sugar coated es5 functions with prototypal inheritance setup. Mostly true - but there are two considerations that make testing more difficult:
-
super is a magical keyword that calls the same method on the parent class. in cases with methods, easy enough to stub those,
sinon.stub(parent.prototype, 'whatever')-- for super itself, there is no way to stub out the constructor call... normally not a huge deal, but... -
classes are not added to the global scope. where once you could call
sinon.stub(global, 'SomeFunction'),sinon.stub(global, 'SomeClass')(or under window in the browser), this will throw an error.
| private static readonly string[] tenHoursOfFun = | |
| { | |
| "https://www.youtube.com/watch?v=wbby9coDRCk", | |
| "https://www.youtube.com/watch?v=nb2evY0kmpQ", | |
| "https://www.youtube.com/watch?v=eh7lp9umG2I", | |
| "https://www.youtube.com/watch?v=z9Uz1icjwrM", | |
| "https://www.youtube.com/watch?v=Sagg08DrO5U", | |
| "https://www.youtube.com/watch?v=5XmjJvJTyx0", | |
| "https://www.youtube.com/watch?v=IkdmOVejUlI", | |
| "https://www.youtube.com/watch?v=jScuYd3_xdQ", |
| /*<?php | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |