This gist is updated daily via cron job and lists stats for npm packages:
- Top 1,000 most depended-upon packages
- Top 1,000 packages with largest number of dependencies
- Top 1,000 packages with highest PageRank score
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Apple Meta Insanity</title> | |
| <!-- | |
| APPLE WEB APP META TAGS | |
| --> | |
This is started out as a curiosity, pasted as a gist but now, years later, I've come back to it because there are too many of these uuid modules out there and they're too complicated.
This, however, is easy to read and understand (for me, at least). Even its tests are dependncy and build-step free.
node-uuid vs crazy-uuid vs fast-uuid
| #!/bin/bash | |
| # | |
| # Restart Bluetooth Module on Mac OS X | |
| # | |
| # Requires Blueutil to be installed: http://brewformulas.org/blueutil | |
| BT="/usr/local/bin/blueutil" | |
| log() { | |
| echo "$@" |
| ;(function() { | |
| function myModule() { | |
| } | |
| if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { | |
| module.exports = myModule; | |
| } | |
| else { | |
| if (typeof define === 'function' && define.amd) { | |
| define([], function() { |
| /* Shadow 0dp */ | |
| box-shadow: none; | |
| /* Shadow 1dp */ | |
| box-shadow: 0 1px 1px 0 rgba(0,0,0,0.14), 0 2px 1px -1px rgba(0,0,0,0.12), 0 1px 3px 0 rgba(0,0,0,0.20); | |
| /* Shadow 2dp */ | |
| box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.20); | |
| /* Shadow 3dp */ |
tldr: go build only produces an executable for main packages. Check the package name of your main file is main.
I am an idiot. Its only through mistakes that you learn tho. I have recently been running into issues with my new golang projects. ONLY the new ones. Whenever I try to make a new project, it would always have issues. The biggest issue is the fact that "go build" would not produce an executable without "-o main.exe" as arguments. When an executable was produced, if I ran it I got
$ ./main.exe
./main.exe: line 1: syntax error near unexpected token \`newline\'
./main.exe: line 1: \`!<arch>\'
| function toBaseN(num, base) { | |
| if (num === 0) { | |
| return '0'; | |
| } | |
| var digits = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| var len = Math.min(digits.length, base); | |
| var result = ''; | |
| while (num > 0) { | |
| result = digits[num % len] + result; | |
| num = parseInt(num / len, 10); |
id and name attributes have "user-content-" prefixed to their value.sub or sup tags are allowed.ul or ol tags are allowed.| Allowed Element | Allowed Attributes |
|---|---|
| All allowed elements | abbr, accept, accept-charset, accesskey, action, align, alt, axis, border, cellpadding, cellspacing, char, charoff, charset, checked, clear, color, cols, colspan, compact, coords, datetime, dir, disabled, enctype, for, frame, headers, height, hreflang, hspace, id, ismap, itemprop, label, lang, maxlength, media, method, multiple, name, nohref, noshade, nowrap, open, prompt, readonly, rev, rows, rowspan, rules, scope, selected, shape, size, span, start, summary, tabindex, title, type, usemap, valign, value, vspace, width |
a |
As above plus href (must be github-mac, github-windows, http, |