I hereby claim:
- I am aweigold on github.
- I am weigold (https://keybase.io/weigold) on keybase.
- I have a public key ASAb_1RI8NanhU7ECEJ9Y9Y4aqdosflDQqoFBBUGa2idDgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$rootScope.$on('$stateChangeStart', function(evt, to, params){ | |
var isError = $windowProvider.$get().document.querySelector("meta[name='yourErrorPageTag']"); | |
if (isError) { | |
evt.preventDefault(); | |
$windowProvider.$get().location = "/apppath/index.html" + $windowProvider.$get().location.hash; | |
} | |
}); |
<meta name="yourErrorPageTag" content="true" /> | |
<base href="/apppath/" /> |
<!-- build:include:error404,error404 error/base.html --><!-- /build--> |
<div class="page-container"> | |
<div class="site-content"> | |
<!-- build:remove:error400,error404 --> | |
<div ui-view="mainBody"></div> | |
<!-- /build --> | |
<!-- build:include:error400 error/400.html --><!-- /build--> | |
<!-- build:include:error404 error/404.html --><!-- /build--> | |
</div> | |
</div> |
// 'paths' is setup earlier in my grunt file | |
processhtml: { | |
mainapp: { | |
options: { | |
strip: true, | |
data: { | |
year: new Date().getFullYear(), | |
localCssPath: paths.minCssName, | |
localJsPath: paths.minJsName | |
} |
long sum = 0 | |
byte overflow; | |
String text = 'mystring' | |
for (int i =0; i< text.length(); i++){ | |
sum = (long)((16* sum) ^ text.getBytes()[i]) | |
overflow = (byte) (sum / 4294967296) | |
sum = sum - overflow * 4294967296 | |
sum = sum ^ overflow | |
} | |
if (sum > 2147483647) { |
apply plugin: 'idea' | |
idea { | |
project { | |
ipr.withXml { | |
// Create a task to run gradle testClasses, which we will subsequiently bind to Default JUnit runner to | |
def runConfigComp = it.node.appendNode('component') | |
def runOpts = [ | |
"default": "false", | |
"name": "testClasses for JUnit", |
USE myDatabase | |
SELECT 'exec master..xp_cmdshell' | |
+ ' ''' | |
+ 'bcp' | |
+ ' ' + TABLE_CATALOG + '.' + TABLE_SCHEMA + '.' + TABLE_NAME | |
+ ' out' | |
+ ' E:\releasedDB\prod\' | |
+ TABLE_CATALOG + '.' + TABLE_SCHEMA + '.' + TABLE_NAME + '.csv' | |
+ ' -c' | |
+ ' -t,' |
BEGIN | |
IF EXISTS (SELECT * FROM tempdb.sys.tables WHERE name LIKE '#dbFiles%') | |
DROP TABLE #dbFiles | |
END | |
EXEC master.dbo.sp_configure 'show advanced options', 1 | |
RECONFIGURE | |
EXEC master.dbo.sp_configure 'xp_cmdshell', 1 | |
RECONFIGURE |