- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
| function mySlowFunction(baseNumber) { | |
| console.time('mySlowFunction'); | |
| let result = 0; | |
| for (var i = Math.pow(baseNumber, 7); i >= 0; i--) { | |
| result += Math.atan(i) * Math.tan(i); | |
| }; | |
| console.timeEnd('mySlowFunction'); | |
| } | |
| mySlowFunction(8); // higher number => more iterations => slower |
| ┌──────────┐ | |
| ──┤ Overview ├───────────────────────────────────────────────────────────────── | |
| └──────────┘ | |
| $ npm install --save bluebird | |
| const Promise = require('bluebird') |
| import express from "express"; | |
| /** | |
| * Takes a route handling function and returns a function | |
| * that wraps it after first checking that the strings in | |
| * `reserved` are not part of `req.body`. Used for ensuring | |
| * create and update requests do not overwrite server-generated | |
| * values. | |
| */ | |
| function checkReservedParams(routeHandler, ...reserved) { |
| SELECT | |
| tc.constraint_name, tc.table_name, kcu.column_name, | |
| ccu.table_name AS foreign_table_name, | |
| ccu.column_name AS foreign_column_name | |
| FROM | |
| information_schema.table_constraints AS tc | |
| JOIN information_schema.key_column_usage AS kcu | |
| ON tc.constraint_name = kcu.constraint_name | |
| JOIN information_schema.constraint_column_usage AS ccu | |
| ON ccu.constraint_name = tc.constraint_name |
| { | |
| "plugins": ["react-hot-loader/babel"], | |
| "ignore":[] | |
| } |
| {% with messages = get_flashed_messages(with_categories=true) %} | |
| <!-- Categories: success (green), info (blue), warning (yellow), danger (red) --> | |
| {% if messages %} | |
| {% for category, message in messages %} | |
| <div class="alert alert-{{ category }} alert-dismissible" role="alert"> | |
| <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
| <!-- <strong>Title</strong> --> {{ message }} | |
| </div> | |
| {% endfor %} | |
| {% endif %} |
| // $(element).center(); | |
| jQuery.fn.center = function () | |
| { | |
| this.css("position","absolute"); | |
| this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px"); | |
| this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px"); | |
| return this; | |
| } |