following are my finding while switching from ubuntu to macOS, first I describe the issue and what is the alternative in the mac OS before moving forward, let's know the version name by their number denoated as OS X
version number | version name |
---|---|
10.10 | "Yosemite" |
10.11 | "EI Captian" |
10.12 | "Sierra" |
10.13 | "High Sierra" |
This file contains 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 user1 = {name: 'alpha', age: 23, address: {street: 'alpha road', city: 'Pune'}, gender: {sex: 'male'}}; | |
const user2 = {name: 'beta', age: 25, address: {street: 'beta road', state: 'Maharashtra'}}; | |
const deepMerge = (source, target) => { | |
for(const [key, val] of Object.entries(source)) { | |
if(val !== null && typeof val === 'object') { | |
if(target[key] === undefined) { | |
target[key] = {...val} | |
} | |
deepMerge(val, target[key]); |
This file contains 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 input = 'torzeonthowoereezero'; | |
// idea here is, first check that every letter of numeral exist in the given string, | |
// if it exist then remove the numeral letter from given string and search for next numeral and so on | |
const numeral = { | |
'zero' : 0, | |
'one': 1, |
This file contains 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
{ | |
"editor.snippetSuggestions": "top", | |
"editor.wordWrap": "on", | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": true, | |
"[html]": { | |
"editor.formatOnSave": true, | |
"editor.quickSuggestions": { | |
"other": true, | |
"comments": false, |
This file contains 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
#!/bin/bash | |
# call as `sh curl.sh <uuid> <hostname>` | |
# exmaple sh curl.sh 595e341fd7391071d21ce1b5 20.20.1.73 | |
header="Content-Type: application/json" | |
enc=$(shuf -i 0-1000 -n 1) | |
dec=$(shuf -i 10-600 -n 1) | |
now=$(date +%s%3N) | |
post_data=$(cat <<EOF | |
{ | |
"ip_address": "$2", |
This file contains 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
/* | |
* below code is for search section of Travel Agent Player | |
* @date : May 16,2013 | |
* @author : xKeshav | |
* @update : May 22, 2013 | |
*/ | |
var baseUrl = 'http://www.clik2view.com/'; | |
$(function() { |
This file contains 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
setInterval((function () { | |
console.log(new Date()); // run some arbitrary code | |
return arguments.callee; // here be the magic | |
})(), 1000); | |
// ^---- and that runs the function, and the return val is assign to the interval |
This file contains 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
/** This function is used to debug variables during page execution | |
* @param $what , the variable which need to debug,can be array or single variable | |
* @param $more , to know the method and line number where that variable is used | |
* @param $die , set TRUE if want to stop the page | |
* how to use : debug::watch($postarray,1,1); | |
* @author keshav mohta | |
* @date Aug 12, 2010 | |
*/ | |
class debug() | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Iterator : Unit Case</title> | |
<!-- <link rel="stylesheet" href="fix.css"> --> | |
<style type="text/css"> | |
body { | |
font-style: sans-serif; |
NewerOlder