Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| regexp=\'.+?\' | |
| colours=bold yellow | |
| count=more | |
| ===== | |
| regexp=(FROM|INNER JOIN|WHERE|AND|LIMIT|ON|AS|WHERE) | |
| colours=bold green | |
| count=more | |
| ====== | |
| regexp=(START TRANSACTION|COMMIT) | |
| colours=bold white on_green |
| // Built with IMPACT - impactjs.org | |
| (function (window) { | |
| "use strict"; | |
| Number.prototype.map = function (istart, istop, ostart, ostop) { | |
| return ostart + (ostop - ostart) * ((this - istart) / (istop - istart)); | |
| }; | |
| Number.prototype.limit = function (min, max) { | |
| return Math.min(max, Math.max(min, this)); | |
| }; | |
| Number.prototype.round = function (precision) { |
| // Veeva API helper library | |
| // dependencies: async | |
| // Brian Pfeil - 2012-03-01 - init | |
| (function() { | |
| window.veeva = { | |
| getRandomFunctionName: function() { | |
| var randomNumber = Math.floor(Math.random() * (new Date()).getTime()); | |
| var millisecondsSinceEpoch = (new Date().getTime()); |
Lower bound of Wilson score confidence interval for a Bernoulli parameter
All implementations use 95% probability.
pos is the number of positive votes, n is the total number of votes.
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.