Quick function to deep merge using Object.assign(). Thoughts?
/**
* Simple is object check.
* @param item
* @returns {boolean}
*/Picking the right architecture = Picking the right battles + Managing trade-offs
| package code.test; | |
| import java.io.*; | |
| import java.nio.file.Paths; | |
| import java.util.*; | |
| import java.util.jar.JarEntry; | |
| import java.util.jar.JarFile; | |
| /** | |
| * To Extract jar file into normal file (System file) |
'use strict';
const crypto = require('crypto');
// get password's md5 hash
let password = 'test';
let password_hash = crypto.createHash('md5').update(password, 'utf-8').digest('hex').toUpperCase();
console.log('key=', password_hash); // 098F6BCD4621D373CADE4E832627B4F6| # one or the other, NOT both | |
| [url "https://github"] | |
| insteadOf = git://github | |
| # or | |
| [url "git@github.com:"] | |
| insteadOf = git://github |
| #pragma once | |
| // AVR | |
| extern "C" { | |
| #include <avr/io.h> | |
| } | |
| #define GD_PSR 0x00 // Panel settings | |
| #define GD_PWR 0x01 // Power setting | |
| #define GD_BTST 0x06 // Booster soft start |
| /** | |
| * Once this is running open your browser and hit http://localhost | |
| * You'll see that the request hits the proxy and you get the HTML back | |
| */ | |
| 'use strict'; | |
| const net = require('net'); | |
| const http = require('http'); |
| import WebKit | |
| import UIKit | |
| class WebViewController: UIViewController { | |
| var url: URL! | |
| var wKWebView: WKWebView! | |
| @IBOutlet weak var containerView: UIView! | |
| @IBOutlet weak var goBackButton: UIBarButtonItem! | |
| @IBOutlet weak var goForwardButton: UIBarButtonItem! |
| use std::net; | |
| use std::env; | |
| fn listen(socket: &net::UdpSocket, mut buffer: &mut [u8]) -> usize { | |
| let (number_of_bytes, src_addr) = socket.recv_from(&mut buffer).expect("no data received"); | |
| println!("{:?}", number_of_bytes); | |
| println!("{:?}", src_addr); |
| registry=https://registry.npm.taobao.org | |
| disturl=https://npm.taobao.org/dist | |
| sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ | |
| phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ | |
| electron_mirror=https://npm.taobao.org/mirrors/electron/ | |
| chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver | |
| operadriver_cdnurl=https://npm.taobao.org/mirrors/operadriver | |
| selenium_cdnurl=https://npm.taobao.org/mirrors/selenium | |
| node_inspector_cdnurl=https://npm.taobao.org/mirrors/node-inspector | |
| fsevents_binary_host_mirror=http://npm.taobao.org/mirrors/fsevents/ |