Skip to content

Instantly share code, notes, and snippets.

View theophilly's full-sized avatar

theophilly

View GitHub Profile
@avin
avin / Object.byString.js
Created March 26, 2015 08:12
Object.byString
// Usage: Object.byString(someObj, 'part3[0].name');
// Demo: http://jsfiddle.net/alnitak/hEsys/
Object.byString = function(o, s) {
s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
s = s.replace(/^\./, ''); // strip a leading dot
var a = s.split('.');
for (var i = 0, n = a.length; i < n; ++i) {
var n = a[i];
if (n in o) {
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active July 27, 2024 09:08
crack activate Office on mac with license file