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 TodoCtrl( $scope ) | |
{ | |
$scope.todos = | |
[ | |
{ text: 'learn angular', done:true }, | |
{ text: 'build an angular app', done:false }, | |
{ text: 'A NEW Angular TO DO', done:true } | |
]; | |
$scope.addTodo = function() |
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
extends index.jade | |
append head | |
base(href='/angular/component/') | |
script. | |
angular.module('TM_App') //disable routing | |
.config( | |
function($stateProvider, $urlRouterProvider, $locationProvider) | |
{ | |
$urlRouterProvider.deferIntercept(); | |
}); |
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
expect = chai.expect; | |
app = angular.module('TM_App') | |
app.directive "test", ()-> | |
templateUrl:"some.html", | |
replace :true | |
describe '| testing | templateUrl',-> | |
element = null |
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 sourceFolder = @"C:\O2\_tempDir\Summit Certificates\".createDir(); // DC NOTE: use this folder | |
var pathToBackGroundImage = sourceFolder.pathCombine("Summit Logo.gif"); | |
if (pathToBackGroundImage.fileExists().isFalse()) | |
"http://www.owasp.org/images/b/b7/Final_summit_logo.jpg".download(pathToBackGroundImage); | |
Document doc = null; | |
PdfWriter writer = null; |
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 sourceFolder = @"C:\O2\_USERDATA\WikiBackup\O2MediaWikiAPI\(4_10_2012,2_04 AM)\Files"; | |
var files = sourceFolder.files(); | |
foreach(var file in files) | |
{ | |
var targetFolder = sourceFolder.pathCombine(file.extension()).createDir(); | |
Files.MoveFile(file,targetFolder); | |
} |
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 my_Gauge = | |
{ | |
data_site_id : '....' | |
, title : null | |
, resource : null | |
, track : function(title, resource) | |
{ | |
my_Gauge.title = title; | |
my_Gauge.resource = resource; | |
_gauges.track(); |
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
<script type="text/javascript"> | |
var _gauges = _gauges || []; | |
(function() { | |
var t = document.createElement('script'); | |
t.type = 'text/javascript'; | |
t.async = true; | |
t.id = 'gauges-tracker'; | |
t.setAttribute('data-site-id', '.............'); | |
t.src = '//secure.gaug.es/track.js'; | |
var s = document.getElementsByTagName('script')[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
<script src="https://gist.github.com/2397851.js?file=gistfile1.txt"> |
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
import suds | |
import re | |
import sys | |
import os | |
import traceback | |
url='http://....:8000//aspx_pages/TM_WebServices.asmx?WSDL' | |
users={} | |
def main(): |
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
import suds | |
import re | |
url='http://.....:8000//aspx_pages/TM_WebServices.asmx?WSDL' | |
def main(): | |
client=connect_and_login(url) | |
get_methods_parameters_datatypes(client) | |
def connect_and_login(url): |