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
# one or the other, NOT both | |
[url "https://github"] | |
insteadOf = git://github | |
# or | |
[url "[email protected]:"] | |
insteadOf = git://github |
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
{ | |
"addresses": [ | |
{ | |
"address": "1234/A, Alpha Beta Building, Near Zenith Tower, Xyz Street, Block 12, Sector 6, Gandhinagar, Ahmedabad, Gujarat - 382010", | |
"PIN": "123456" | |
}, | |
{ | |
"address": "56B/89, QRS Plaza, Opp. UVW Complex, A-Block, Vikas Marg, Sector 14, Gurgaon, Haryana - 122001", | |
"PIN": "654321" | |
}, |
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
<!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; |
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
<?php | |
// error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); | |
error_reporting(E_ALL ^ E_NOTICE); | |
class latest { | |
private $basepath; | |
private $flags; | |
public $parentDir; | |
private $thumbDirName = 'thumbnails'; | |
public $i = 1; |
NewerOlder