The content is now here: https://exploringjs.com/impatient-js/ch_modules.html#polyfills
Moved to https://dmitri.shuralyov.com/blog/18.
var n = 1; | |
console.log(n.toFixed(2)); | |
// To change the number directly: | |
// 1. Use parentheses: | |
console.log((1).toFixed(2)); | |
// 2. Use two dots: | |
console.log(1..toFixed(2)); | |
// Number binary representation: | |
console.log(20..toString(2)); |
I want to start writing libraries and large applications using the JavaScript language. However, I don't know how to setup the project and which build tools to use. What I do know is that the JavaScript community has moved way beyond using browser developer tool plugins and strategically-placed console.log()
statements to debug, test, and build code.
I need help.
Below, I will keep track of articles, tutorials and tools I come across as I search for a way to bring my front-end development chops up-to-date.
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="robots" content="noodp, noydir" /> | |
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
<link rel="canonical" href="http://mysite.com/" /> | |
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
(function () { | |
const org = 'ORG' | |
const nodes = document.querySelectorAll('.Box-row'); | |
const rows = [ ...nodes ]; | |
const orgRows = rows.filter((e) => e.innerText.startsWith(` ${org}/`)); | |
const orgUnsubButtons = orgRows.map(row => row.querySelector('button.select-menu-item[value="included')); | |
orgUnsubButtons.forEach(button => console.log(button.click())); | |
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'
Sentry is an amazing auth system. But I really need a feature: multiple user types in the same app. And I cannot separate those in groups, because they have different table columns. After 2 days burning my head, I think I found a good solution. The magic is duplicate SentryServiceProvider with new different settings.
This was tested on Laravel 4.0 and Sentry 2. If you're using other version of Sentry, my suggestion is to follow same steps from this gist but use your local files instead copying files from here.
Lets suppose we have a fresh Sentry install with default User ambient. Now we want another ambient called Admin, with new model and different settings. How to do: