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 / plain.js
Created May 23, 2016 13:09 — forked from kkga/plain.js
snippets of plain js
// document.ready
document.addEventListener("DOMContentLoaded", function() {
// your code
}, false);
// select div
var element = document.querySelector("div");
@englishextra
englishextra / fixEnRuTypo.js
Last active May 25, 2016 16:24
fix en ru / ru en typo
/*!
* fix en ru / ru en typo
* modified sovtime.ru/soft/convert.html
* gist.github.com/englishextra/8f398bb7a3e438b692352a3c114a13ae
* jsfiddle.net/englishextra/6p150wu1/
* jsbin.com/runoju/edit?js,output
* var a = fixEnRuTypo("ghbdtn");
* alert(a);
* var b = fixEnRuTypo("руддщ", "ru", "en");
* alert(b);
@englishextra
englishextra / englishextra-app-win32-x64.iss
Last active November 26, 2016 22:16
englishextra-app-win32-x64.iss
; gist.github.com/englishextra/e014c67a8dff224498bd51a88503afdb
; -- Components.iss --
; Demonstrates a components-based installation.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
; remember to add win-uninstall.ico in root
; .nsi wont need this icon: it provides one
; www.jrsoftware.org/ispphelp/index.php?topic=define
#define APPID "{{9C26620E-3CA9-4130-9370-4A7A10155F98}"
@englishextra
englishextra / englishextra-app-win32-ia32.iss
Last active November 26, 2016 22:16
englishextra-app-win32-ia32.iss
; gist.github.com/englishextra/3be1faaa2ae4f9db3a2b2658086384e1
; -- Components.iss --
; Demonstrates a components-based installation.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
; remember to add win-uninstall.ico in root
; .nsi wont need this icon: it provides one
; www.jrsoftware.org/ispphelp/index.php?topic=define
#define APPID "{{40D6CEE7-B506-481B-86FD-3307BEEE61F5}"
@englishextra
englishextra / irrverbsscr-win32-ia32.iss
Last active June 17, 2016 11:36
Irregular Verbs.iss
;https://gist.github.com/englishextra/b70fd64ec0d2db49ca78d2621e2256b7
; -- Components.iss --
; Demonstrates a components-based installation.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
;http://www.jrsoftware.org/ispphelp/index.php?topic=define
#define APPID "{{21838ED2-0C77-455F-8779-D391270D14E8}"
#define APPNAME "Irregular Verbs Screensaver"
#define VERSION "0.1.1"
@englishextra
englishextra / englishextra-app-win32-ia32.aip
Last active November 26, 2016 15:13
englishextra-app-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="{C3C17E54-3059-40C5-9798-42C3C4B3F0DB}">
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="AI_BITMAP_DISPLAY_MODE" Value="0"/>
<ROW Property="AI_ThemeStyle" Value="default" MultiBuildValue="DefaultBuild:classic" MsiKey="AI_ThemeStyle"/>
<ROW Property="ALLUSERS" Value="1"/>
<ROW Property="ARPCOMMENTS" Value="https://gist.github.com/englishextra/bc4a46976d59162eaabc602ea68d38a6" ValueLocId="*"/>
<ROW Property="ARPHELPLINK" Value="https://englishextraapp.codeplex.com/documentation"/>
<ROW Property="ARPPRODUCTICON" Value="englishextraapp.exe" Type="8"/>
<ROW Property="ARPURLINFOABOUT" Value="https://englishextraapp.codeplex.com/"/>
@englishextra
englishextra / englishextra-app-win32-x64.aip
Last active November 26, 2016 15:14
englishextra-app-win32-x64.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="{C3C17E54-3059-40C5-9798-42C3C4B3F0DB}">
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="AI_BITMAP_DISPLAY_MODE" Value="0"/>
<ROW Property="AI_ThemeStyle" Value="default" MultiBuildValue="DefaultBuild:classic" MsiKey="AI_ThemeStyle"/>
<ROW Property="ALLUSERS" Value="1"/>
<ROW Property="ARPCOMMENTS" Value="https://gist.github.com/englishextra/385ab4ac472f0723d827575aedac9977" ValueLocId="*"/>
<ROW Property="ARPHELPLINK" Value="https://englishextraapp.codeplex.com/documentation"/>
<ROW Property="ARPPRODUCTICON" Value="englishextraapp.exe" Type="8"/>
<ROW Property="ARPURLINFOABOUT" Value="https://englishextraapp.codeplex.com/"/>
@englishextra
englishextra / englishextra-app-win32-x64.ispro
Created June 5, 2016 16:19
englishextra-app-win32-x64.ispro
; InstallSimple project
[Setup]
WindowTitle=Установка
ProductName=englishextra-app
[Graphics]
SplashScreen=
SplashScreenDelay=3
Header=D:\server\sources\englishextra-app\WizModernSmallImage.bmp
@englishextra
englishextra / englishextra-app-win32-ia32.ispro
Created June 5, 2016 16:20
englishextra-app-win32-ia32.ispro
; InstallSimple project
[Setup]
WindowTitle=Установка
ProductName=englishextra-app
[Graphics]
SplashScreen=
SplashScreenDelay=3
Header=D:\server\sources\englishextra-app\WizModernSmallImage.bmp
@englishextra
englishextra / englishextra-app-win32-x64.nsi
Last active November 26, 2016 15:10
englishextra-app-win32-x64.nsi
; gist.github.com/englishextra/dc68c3a8c1fd0a2853772006800f855b
; 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