As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| /* | |
| I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
| so it's better encapsulated. Now you can have multiple random number generators | |
| and they won't stomp all over eachother's state. | |
| If you want to use this as a substitute for Math.random(), use the random() | |
| method like so: | |
| var m = new MersenneTwister(); |
| var safariDebug = ( navigator.platform.indexOf("iPhone") < 0 && navigator.platform.indexOf("iPod") < 0 && navigator.platform.indexOf("iPad") < 0 ); | |
| if(safariDebug) | |
| { | |
| PhoneGap.run_command = function() | |
| { | |
| if (!PhoneGap.available || !PhoneGap.queue.ready) | |
| return; |
| <?php | |
| /** | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * Anyone is free to copy, modify, publish, use, compile, sell, or | |
| * distribute this software, either in source code form or as a compiled | |
| * binary, for any purpose, commercial or non-commercial, and by any | |
| * means. | |
| * |
| html { | |
| min-height: 100%; | |
| background: | |
| linear-gradient(81deg,transparent 86.3%,#eee 86.3%,#eee), | |
| linear-gradient(72deg,transparent 75.4%,#ddd 75.4%,#ddd), | |
| linear-gradient(63deg,transparent 66.25%,#eee 66.25%,#eee), | |
| linear-gradient(54deg,transparent 57.85%,#ddd 57.85%,#ddd), | |
| linear-gradient(45deg,transparent 49.9%,#eee 49.9%,#eee), | |
| linear-gradient(36deg,transparent 41.96%,#ddd 41.96%,#ddd), | |
| linear-gradient(27deg,transparent 33.6%,#eee 33.6%,#eee), |
| -- Retrieve descendants | |
| -- ==================== | |
| -- retrieve descendants of #4 | |
| SELECT c.* | |
| FROM Comments AS c | |
| JOIN TreePaths AS t ON c.comment_id = t.descendant | |
| WHERE t.ancestor = 4; | |
| -- Retrieve ancestors |
| MedicationView = Backbone.View.extend({ | |
| events: { | |
| "click #edit": "editMedication" | |
| }, | |
| editMedication: function(){ | |
| var editView = new AddEditView({model: this.model}); | |
| editView.render(); | |
| } | |
| }); |
| ;; Copyright (c) Alan Dipert. All rights reserved. | |
| ;; The use and distribution terms for this software are covered by the | |
| ;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
| ;; By using this software in any fashion, you are agreeing to be bound by | |
| ;; the terms of this license. | |
| ;; You must not remove this notice, or any other, from this software. | |
| (ns alandipert.kahn | |
| (:require [clojure.set :refer [difference union intersection]])) |
| /** | |
| * Monkey patch `Backbone.Model.extend()` with ES5 getters/setters for each | |
| * attribute defined in the defaults. Gives you the added bonus of being | |
| * to pass your backbone models directly to your Mustache.js views. | |
| * | |
| * Example: | |
| * | |
| * var User = Backbone.Model.extend({ | |
| * defaults: { | |
| * username: undefined, |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |