sudo vim /private/var/db/launchd.db/com.apple.launchd/overrides.plist
Add the following code,as entries like:
<key>com.macpaw.CleanMyMac-setapp.HealthMonitor</key>
<dict>
<key>Disabled</key>
<true/>
sudo vim /private/var/db/launchd.db/com.apple.launchd/overrides.plist
Add the following code,as entries like:
<key>com.macpaw.CleanMyMac-setapp.HealthMonitor</key>
<dict>
<key>Disabled</key>
<true/>
| var R = require('ramda'); | |
| void 0; //to not bloat the output | |
| var random = require('seed-random')(1337); | |
| var data = [ | |
| {input: [0, 0], output: 0}, | |
| {input: [1, 0], output: 1}, | |
| {input: [0, 1], output: 1}, | |
| {input: [1, 1], output: 0}, | |
| ]; | |
| var activation_sigmoid = x => 1 / (1 + Math.exp(-x)); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000(updated version of http://www.joyceleong.com/log/installing-phantomjs-on-ubuntu/)
export P=phantomjs-2.1.1-linux-x86_64cd /usr/local/sharesudo curl -L -o $P.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/$P.tar.bz2sudo tar xvf $P.tar.bz2sudo ln --force -s /usr/local/share/$P /usr/local/share/phantomjssudo ln --force -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjsphantomjs --version| var Benchmark = require('benchmark'); | |
| Benchmark.prototype.setup = function() { | |
| a = ["test"]; | |
| for (var i = 0; i < 10000; i++) { | |
| a.push("some other stuff"); | |
| } | |
| s = a.join(); | |
| re1 = new RegExp("^test"); | |
| re2 = new RegExp("^not there"); | |
| }; |
Following the AngularJS PARIS meetup (25/2 à 19h à Paris with @sampaccoud @dzen @_kemar @tchack13 @vinz et @revolunet)
Here's our best AngularJS ressources : twitter, github, articles & blogs. Please comment and add your good stuff !
| def resize_nocrop_noscale(image, w,h) | |
| w_original = image[:width].to_f | |
| h_original = image[:height].to_f | |
| if w_original < w && h_original < h | |
| return image | |
| end | |
| # resize | |
| image.resize("#{w}x#{h}") |
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |
| #!/bin/bash | |
| LOADING=false | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 [options] dbname | |
| OPTIONS: |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"