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
| // Place user-specific overrides in this file, to ensure they're preserved | |
| // when upgrading | |
| { | |
| "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
| } |
| for (var i=1; i <= 20; i++) | |
| { | |
| if (i % 15 == 0) | |
| console.log("FizzBuzz"); | |
| else if (i % 3 == 0) | |
| console.log("Fizz"); | |
| else if (i % 5 == 0) | |
| console.log("Buzz"); | |
| else | |
| console.log(i); |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
| var http = require('http'); | |
| http.createServer(function (request, response) { | |
| response.setHeader('Content-Type', 'text/html; charset=UTF-8'); | |
| response.setHeader('Transfer-Encoding', 'chunked'); | |
| var html = | |
| '<!DOCTYPE html>' + | |
| '<html lang="en">' + | |
| '<head>' + |
| function hang(n) { | |
| var x = new XMLHttpRequest(); | |
| x.open('GET', 'http://hang.nodester.com/script.js?' + n, false); | |
| x.send(); | |
| } | |
| // usage: hang(2 * 1000); |
| <!-- Example 1: Normal Template --> | |
| <script type="text/html" id="item_tmpl"> | |
| <div id="<%=id%>" class="<%=(i % 2 == 1 ? " even" : "")%>"> | |
| <div class="grid_1 alpha right"> | |
| <img class="righted" src="<%=profile_image_url%>"/> | |
| </div> | |
| <div class="grid_6 omega contents"> | |
| <p><b><a href="/<%=from_user%>"><%=from_user%></a>:</b> <%=text%></p> | |
| </div> | |
| </div> |