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
| // 1: how could you rewrite the following to make it shorter? | |
| foo ? bar.doSomething(el) : bar.doSomethingElse(el); | |
| // 2: what is the faulty logic in the following code? | |
| var foo = 'hello'; | |
| (function() { |
| // 1: how could you rewrite the following to make it shorter? | |
| if (foo) { | |
| bar.doSomething(el); | |
| } else { | |
| bar.doSomethingElse(el); | |
| } | |
| var iOS = require('iOS'); | |
| iOS.createNotification({ | |
| header: 'node-iOS Rocks!', | |
| message: 'How much does running \'node\' on your iPhone rock?', | |
| defaultButton: 'A lot!', | |
| alternateButton: 'It rocks my socks' | |
| }, function(err, res){ | |
| if (err) throw err; | |
| console.log(res); |
| /** | |
| * Prepare the App Folder | |
| */ | |
| (function(){ | |
| window.appRootDirName = ".myapp"; | |
| document.addEventListener("deviceready", onDeviceReady, false); | |
| function onDeviceReady() { | |
| console.log("device is ready"); | |
| window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| <?php | |
| //where you want your thumbnails to go | |
| $thumbs_dir = 'uploads/thumbs/'; | |
| //this should be an array of video paths | |
| $videos = array(); | |
| if( $_POST["name"] ){ | |
| // Grab the MIME type and the data with a regex for convenience | |
| if (!preg_match('/data:([^;]*);base64,(.*)/', $_POST['data'], $matches)) { |
| ## A re-spin on http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer, see | |
| ## http://community.linuxmint.com/tutorial/view/365 | |
| ## SHARP-BANG NEXT LINE | |
| #!/bin/sh | |
| # Copyright (c) 2007 Aristotle Pagaltzis | |
| # 2013 Sören Andersen | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var del = require('del'); | |
| var uglify = require('gulp-uglify'); | |
| var gulpif = require('gulp-if'); | |
| var exec = require('child_process').exec; | |
| var notify = require('gulp-notify'); |
More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies: