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
// determine Internet Explorer version | |
// add class 'ieX' to html | |
window.ieVersion = (function() { | |
var ddm = document.documentMode; | |
var html = document.documentElement; | |
if (Math.round(ddm) === ddm){ | |
if (html.classList) { | |
html.classList.add('ie' + ddm); | |
} else { | |
html.className += ' ie' + ddm; |
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
rem Count lines of the recursively found XML files | |
rem You can rename *.xml to anything else | |
@echo off | |
setLocal EnableDelayedExpansion | |
for /f "tokens=* delims= " %%t in ('dir /s /b *.xml') do ( | |
for /f "tokens=* delims= " %%a in (%%t) do ( | |
set /a N+=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
rem print timestamp (valid for Hungarian language settings) | |
rem result: 2014.08.29. 13:48:52 | |
set datecode=%date:~0,4%.%date:~5,2%.%date:~8,2%. %time:~0,2%:%time:~3,2%:%time:~6,2% | |
echo %datecode% | |
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
<!-- | |
Apply CDATA tags in XSLT | |
--> | |
<xsl:template match="/"> | |
<DOCUMENT> | |
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text> | |
<xsl:apply-templates /> | |
<xsl:text disable-output-escaping="yes">]]></xsl:text> | |
</DOCUMENT> | |
</xsl:template> |
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
/** | |
* RSA Encrypt a String with Public Key | |
* | |
* @uses forge encryption library | |
* @param <String> text - string to encode | |
* @param <BigInteger> modulus - public key modulus | |
* @param <BigInteger> exponent - public key exponent | |
* @return <String> - encoded string in hex | |
*/ | |
function RSAEncrypt(text, modulus, exponent) { |
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
var app = angular.module('myApp', []); | |
app.directive('consecutive', function () { | |
return { | |
require: 'ngModel', | |
restrict: 'A', | |
priority: 50, | |
link: function(scope, elem, attrs, ctrl) { | |
if (!ctrl) return; | |
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
var foo = [1, 2, 3]; | |
var bar = [1, 2, 3]; | |
var foo2 = foo; | |
var bar2 = bar; | |
// assigns a reference to a new array to a variable, while any other references are unaffected | |
foo = []; | |
// deletes everything in the array, which does hit other references | |
bar.length = 0; |
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
function getURLParamValue(name) { | |
var v; | |
document.location.search.substring(1).split('&').forEach(function(value) { | |
if (value.split('=')[0] === name) { | |
v = value.split('=')[1]; | |
} | |
}); | |
return v; | |
} |
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
# ionic build Android | error: No installed build tools found. Please install the Android build tools | |
# http://stackoverflow.com/questions/31190355/ionic-build-android-error-no-installed-build-tools-found-please-install-the | |
# http://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html | |
# | |
# Install SDK Packages | |
# - Android 5.1.1 (API 22) platform SDK | |
# - Android SDK Build-tools version 19.1.0 or higher | |
# - Android Support Repository (Extras) |
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
http://www.slideshare.net/skabber/provisioning-profiles-like-a-pro | |
http://www.slideshare.net/skabber/advanced-app-building | |
https://possiblemobile.com/2013/04/what-is-a-provisioning-profile-part-1/ | |
https://possiblemobile.com/2013/04/what-is-a-provisioning-profile-part-2/ |
OlderNewer