Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Get your build tools and python required libraries installed:
Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
When using WSL2 npm install dns lookup is very slow. To increase the speed you can use an alternative dns server.
If you still need the configured dns server, for example because of vpn usage etc multiple dns servers are needed.
Install dnsmasq inside the WSL distribution.
On ubuntu: sudo apt install dnsmasq
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
| #!/bin/bash | |
| # A script to set up a new mac. Uses bash, homebrew, etc. | |
| # Focused for ruby/rails development. Includes many utilities and apps: | |
| # - homebrew, rvm, node | |
| # - quicklook plugins, terminal fonts | |
| # - browsers: chrome, firefox | |
| # - dev: iterm2, sublime text, postgres, chrome devtools, etc. | |
| # - team: slack, dropbox, google drive, skype, etc |
| <?php | |
| /** | |
| * Insert an attachment from an URL address. | |
| * | |
| * @param String $url | |
| * @param Int $parent_post_id | |
| * @return Int Attachment ID | |
| */ | |
| function crb_insert_attachment_from_url($url, $parent_post_id = null) { |
| <!-- non-retina iPhone pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon57.png" sizes="57x57"> | |
| <!-- non-retina iPad pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon72.png" sizes="72x72"> | |
| <!-- non-retina iPad iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon76.png" sizes="76x76"> | |
| <!-- retina iPhone pre iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon114.png" sizes="114x114"> | |
| <!-- retina iPhone iOS 7 --> | |
| <link rel="apple-touch-icon" href="icon120.png" sizes="120x120"> |
| machine: | |
| node: | |
| version: 6.9.5 | |
| dependencies: | |
| pre: | |
| - 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' | |
| test: | |
| override: | |
| - rm -rf $CIRCLE_ARTIFACTS/coverage |
| define(['jquery'], function ($) { | |
| describe("Form suite", function () { | |
| it('jQuery must be defined', function () { | |
| expect($).toBeDefined(); | |
| }); | |
| it('Testing jQuery Ajax Call', function () { | |
| var d = $.Deferred(); |
| <?php | |
| static public function getInstance() | |
| { | |
| static $instance; | |
| $class = get_called_class(); | |
| if (!($instance instanceof $class)) { | |
| $reflection = new \ReflectionClass($class); | |
| $instance = $reflection->newInstanceArgs(func_get_args()); |