- Trocar o
www.mywebsite.compelo endereço do site em produção; - Incluir isso no início do seu script.
Se passar o parâmetro ?development na URL, ele ignora e mostra os console.log().
| [Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| Documentation=man:mongod(1) | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| User=mongodb | |
| Group=mongodb |
| db.collection.find().limit(1).skip(_rand()*db.collection.count()); |
| <?php | |
| // É aconselhável criar um backup do banco antes | |
| // crie a taxonomia cidade na functions do tema | |
| add_action('init', 'register_locations'); | |
| function register_locations() { | |
| register_taxonomy( 'cidade',array ( | |
| 0 => 'locais', | |
| ), | |
| array( 'hierarchical' => true, |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> | |
| <script src="http://connect.facebook.net/fr_FR/all.js"></script> | |
| <script> | |
| // Replace the id by any other public page id | |
| FB.api('170913076256527/feed', { limit: 3 }, function(result) { | |
| $('#fb-feed').empty(); | |
| $(result.data).each(function(i, post) { | |
| entry = $('<div class="fb-item"></div>'); | |
| if (post.icon) { | |
| entry.append('<img class="icon" src="' + post.icon + '" />'); |
| <?php | |
| /* | |
| Plugin Name: Import demo | |
| Plugin URI: http://royduineveld.nl | |
| Description: A demo import for my blog | |
| Version: 1.0 | |
| Author: Roy Duineveld | |
| Author URI: http://royduineveld.nl | |
| */ |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference.
This is a step-by-step guide, how to setup private Ethereum network.
We’ll set up a network and create two simple JSON-RPC clients in order to communicate with our Ethereum nodes.
If you are running ArchLinux, run the following command instead (see here for why):
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
Then paste it in your terminal and press on enter to run it.
| //how to execute: node verify.js <path file that you want to verify> <certificate path> <hash generate by sign.js> | |
| //output: true if files are equal, false otherwise. | |
| var crypto = require('crypto'); | |
| var fs = require('fs'); | |
| var args = process.argv.slice(2); | |
| var fileName = args[0]; | |
| var certPath = args[1]; | |
| var sig = args[2]; |