sudo diskutil eraseDisk FAT32 MAX_USB disk2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const URL = "" | |
const rp = require('request-promise'); | |
const fs = require('fs'); | |
rp(URL).then(function(html){ | |
fs.writeFile("./res.html", html, function(err) { | |
if(err) { | |
return console.log(err); | |
} | |
console.log("The file was saved!"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var socket = require('socket.io'); | |
var express = require('express'); | |
var app = express(); | |
var path = require('path'); | |
app.use(express.static(path.join(__dirname, 'build'))); | |
app.get('/*', function(req, res) { | |
res.sendFile(path.join(__dirname, 'build', 'index.html')); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebSocket = require('ws'); | |
const ws = new WebSocket('wss://ws.kraken.com'); | |
ws.on('open', function open() { | |
ws.send(JSON.stringify({ | |
"event": "subscribe", | |
"pair": [ | |
"BTC/USD", | |
"ETH/USD", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodemailer = require('nodemailer'); | |
sendMail('gmail', '[email protected]', 'Maxime', '[email protected]', 'Informations V2.0', 'Bonjour Maxime\nPasse une belle journée :p') | |
.then((res) => { | |
console.log('Email sent: ' + res.response) | |
}) | |
.catch((err) => { | |
console.log(err); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import React from 'react' | |
import { View, StyleSheet } from 'react-native' | |
type Props = { | |
behind: React.Component, | |
front: React.Component, | |
under: React.Component | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import store from './redux/store' | |
const AxiosInstance = axios.create() | |
AxiosInstance.interceptors.response.use( | |
(response) => { | |
return response | |
}, | |
async function (error) { |