To launch Windows’ Group Policy Editor, bring up a Run prompt (Windows key + R) and type in “gpedit.msc” before pressing Enter.
The Group Policy Editor will launch, and from here you’ll need to navigate through the left-hand folder tree to Computer Configuration\Administrative Templates\Windows Components.
Double-clicking on the SkyDrive folder.
Double-click on “Prevent the usage of SkyDrive for file storage“.
Here, you want to change the selection from “Not Configured” to “Enabled“. The language is a bit tricky, so be sure that you’re enabling it and not disabling it. You’re enabling the prevention of SkyDrive, not disabling SkyDrive.
You can use git add --patch filename.x
(or -p
for short), and git will begin to break down your file into what it thinks are sensible "hunks" (portions of the file). It will then prompt you with this question:
Stage this hunk [y,n,q,a,d,/,j,J,g,s,e,?]?
Here is a description of each option:
y
stage this hunk for the next commitn
do not stage this hunk for the next commitq
quit; do not stage this hunk or any of the remaining hunksa
stage this hunk and all later hunks in the filed
do not stage this hunk or any of the later hunks in the fileg
select a hunk to go to/
search for a hunk matching the given regexj
leave this hunk undecided, see next undecided hunkJ
leave this hunk undecided, see next hunkk
leave this hunk undecided, see previous undecided hunkK
leave this hunk undecided, see previous hunks
split the current hunk into smaller hunkse
manually edit the current hunk?
print hunk helpWhat is the most efficient way to clone an object in JavaScript?
ES6 (not deep-clone)
var obj2 = Object.assign({}, obj)
Vanilla (deep-clone)
/**
* Simple object clone function.
* Copies primitive types, objects and arrays.
*/
function cloneObject(o) {
if (typeof o !== 'object' || o === null) return o;
let out = Array.isArray(o) ? [] : {};
for (let k in o) {
out[k] = (typeof o[k] === "object" && o[k] !== null)
? cloneObject(o[k])
: o[k];
}
return out;
}
Else Check this links!
//Listen for the event
window.addEventListener("MyEventType", function(evt) {
alert(evt.detail);
}, false);
//Dispatch an event
var evt = document.createEvent("CustomEvent");
evt.initCustomEvent("MyEventType", true, true, "Any Object Here");
window.dispatchEvent(evt);
Update: 2018-04-02