Skip to content

Instantly share code, notes, and snippets.

View englishextra's full-sized avatar
💜
the beat goes on

englishextra englishextra

💜
the beat goes on
View GitHub Profile
@englishextra
englishextra / englishextra-app-win32-ia32.nsi
Last active November 26, 2016 15:12
englishextra-app-win32-ia32.nsi
; gist.github.com/englishextra/1a24ecf97591e06442f49b754e30eee9
; Script generated by the ISS2NSI program.
; Generated from: D:\server\sources\englishextra-app\englishextra-app-win32-ia32.iss
; before converting from .iss to nsi with HM NIS Edit
; temporary remove lines strating with #define
; change INNO's {pf32} to NSIS's $PROGRAMFILES32
; change INNO's {pf64} to NSIS's $PROGRAMFILES64
; fix englishextra-app\./.dist\ to englishextra-app\.dist\
; change Unins000.exe to uninstall.exe
@englishextra
englishextra / loadJS.js
Last active October 1, 2016 20:00
load JS async
/*!
* load JS async
* modified order of arguments, removed CommonJS stuff
* github.com/filamentgroup/loadJS
* gist.github.com/englishextra/397e62184fde65d7755744fdb7a01829
* @param {String} _src path string
* @param {Object} callback callback function
* loadJS(_src,callback)
*/
var loadJS=function(_src,callback){"use strict";var ref=document.getElementsByTagName("script")[0];var script=document.createElement("script");script.src=_src;script.async=true;ref.parentNode.insertBefore(script,ref);if(callback&&"function"===typeof callback){script.onload=callback;}return script;};
@englishextra
englishextra / loadCSS.js
Last active October 1, 2016 20:00
load CSS async
/*!
* load CSS async
* modified order of arguments, added callback option, removed CommonJS stuff
* github.com/filamentgroup/loadCSS
* gist.github.com/englishextra/50592e9944bd2edc46fe5a82adec3396
* @param {String} _href path string
* @param {Object} callback callback function
* @param {String} media media attribute string value
* @param {Object} [before] target HTML element
* loadCSS(_href,callback,media,before)
@englishextra
englishextra / irrverbsscr-win32-ia32.nsi
Created June 17, 2016 11:38
irrverbsscr-win32-ia32.nsi
;https://gist.github.com/englishextra/70e4b8e70ae971a0af3ba92c1dddc611
; Script generated by the ISS2NSI program.
; Generated from: D:\server\sources\englishextra-app\englishextra-app-win32-ia32.iss
;change INNO's {pf32} to NSIS's $PROGRAMFILES32
;change INNO's {pf64} to NSIS's $PROGRAMFILES64
; fix englishextra-app\./.dist\ to englishextra-app\.dist\
; change Unins000.exe to uninstall.exe
;1 warning:
;!warning: MUI_LANGUAGE should be inserted after the MUI_[UN]PAGE_* macros (macro:MUI_LANGUAGE:8)
@englishextra
englishextra / irrverbsscr-win32-ia32.aip
Last active June 17, 2016 11:43
irrverbsscr-win32-ia32.aip
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DOCUMENT Type="Advanced Installer" CreateVersion="12.8" version="12.8" Modules="enterprise" RootPath="." Language="en" Id="{70C9B116-2517-4F28-AAC7-87C552879636}">
<COMPONENT cid="caphyon.advinst.msicomp.ProjectOptionsComponent">
<ROW Name="HiddenItems" Value="SccmComponent;ActSyncAppComponent"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="AI_BITMAP_DISPLAY_MODE" Value="0"/>
<ROW Property="ALLUSERS" Value="1"/>
<ROW Property="ARPCOMMENTS" Value="https://gist.github.com/englishextra/64c6c44acc73b64ba5a276bead011c18" ValueLocId="*"/>
<ROW Property="ARPHELPLINK" Value="https://irrverbsscr.codeplex.com/documentation"/>
@englishextra
englishextra / prependFragmentBefore.js
Last active October 1, 2016 19:55
Adds Element BEFORE NeighborElement
/*!
* Adds Element as fragment BEFORE NeighborElement
* gist.github.com/englishextra/fa19e39ce84982b17fc76485db9d1bea
* @param {String|object} e HTML Element to prepend before before
* @param {Object} a target HTML Element
* prependFragmentBefore(e,a)
*/
var prependFragmentBefore=function(e,a){"string"===typeof e&&(e=document.createTextNode(e));var p=a.parentNode||"",df=document.createDocumentFragment();p&&df.appendChild(e)&&p.insertBefore(df,a);return!1;};
@englishextra
englishextra / hideWindowModule.js
Last active July 3, 2016 08:59
Temporal hiding of module
/*!
* Temporal hiding of module
* github.com/electron/electron/pull/3497
* gist.github.com/englishextra/1bf72395f77c8cf25ddd900aa69a0d68
*/
var hideWindowModule=function(){"object"===typeof module&&(window.module=module,module=void 0);};
@englishextra
englishextra / revealWindowModule.js
Created July 3, 2016 08:58
Temporal reveal of module
/*!
* Temporal reveal of module
* github.com/electron/electron/pull/3497
* gist.github.com/englishextra/1bf72395f77c8cf25ddd900aa69a0d68
*/
var revealWindowModule=function(){window.module&&(module=window.module);};
@englishextra
englishextra / openDeviceBrowser.js
Last active May 12, 2017 20:15
Open external links in default browser out of Electron / nwjs
/*!
* Open external links in default browser out of Electron / nwjs
* gist.github.com/englishextra/b9a8140e1c1b8aa01772375aeacbf49b
* stackoverflow.com/questions/32402327/how-can-i-force-external-links-from-browser-window-to-open-in-a-default-browser
* github.com/nwjs/nw.js/wiki/shell
* electron - file: | nwjs - chrome-extension: | http: Intel XDK
* wont do in electron and nw,
* so manageExternalLinks will set target blank to links
* var win = w.open(url, "_blank");
* win.focus();
@englishextra
englishextra / gdipp_setting.xml
Last active July 24, 2016 11:40
GDIPP settings sample
<?xml version="1.0" encoding="UTF-8" ?>
<!-- https://gist.github.com/englishextra/dc6763ed8322a90ce19b4aa775d819f9 -->
<gdipp>
<version>0.9.1</version>
<gdimm>
<process>
<freetype>
<cache_max_faces>8</cache_max_faces>
<cache_max_sizes>16</cache_max_sizes>