This file contains hidden or 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 superClass() { | |
var self = this; // used when you want to reference an instance of this object from private methods | |
this.PublicIVar = "asdafd"; | |
var privateIVar = "encapsulated"; | |
function PrivateFunction() { | |
} | |
this.PublicFunction = function () { |
This file contains hidden or 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
Using var reader As New TextFieldParser("C:\Users\Danny\Desktop\New Text Document.txt") | |
reader.HasFieldsEnclosedInQuotes = True | |
reader.SetDelimiters(New String() {","}) | |
While(Not reader.EndOfData) | |
Try | |
Console.WriteLine(reader.LineNumber) | |
Dim fields As String() = reader.ReadFields() | |
For Each value As String In fields | |
Console.WriteLine(value) | |
Next |
This file contains hidden or 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
<html> | |
<head> | |
<style type="text/css"> | |
.button{ | |
display:block; | |
color:#555555; | |
height:30px; | |
line-height:31px; | |
margin-bottom:14px; |
This file contains hidden or 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
'This "Hello {FirstName} {LastName}".FormatWith(dataRow) is the same as this String.Format("Hello {1} {2}", firstName, lastName) | |
"Text {ColumnName1} {ColumnName1}".FormatWith(dataRow) | |
This file contains hidden or 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 gridView = '#<%= gridViewId.ClientID%>'; | |
var checkAll = '#checkBoxId'; | |
$(checkAll).click(function (i, v) { | |
$('input[type=checkbox]', gridView).prop('checked', this.checked); | |
}); | |
var checkCount = $('input[type=checkbox]', gridView).length; | |
$('input[type=checkbox]', gridView).click(function (i, v) { | |
$(checkAll).prop('checked', $('input:checked', gridView).length == checkCount); |
This file contains hidden or 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 url = "http://api.twitter.com/1/statuses/user_timeline/codinghorror.json"; | |
$.getJSON(url + "?callback=?", null, function(tweets) { | |
for (i in tweets) { | |
tweet = tweets[i]; | |
$("#result").append(tweet.text + "<hr />"); | |
} | |
}); | |
' Source : http://stackoverflow.com/questions/2681466/jsonp-with-jquery |
This file contains hidden or 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 asdf() { | |
var url = "https://gist.github.com/api/v1/json/gists/dannylloyd"; | |
$.getJSON(url + "?callback=?", null, function(result) { | |
$.each(result.gists, function(){ | |
console.log(this); | |
}); | |
}); | |
} |
This file contains hidden or 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
.clearfix:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; | |
} | |
.clearfix { |
This file contains hidden or 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
$('.panelBountyHunterUniqueLocations a').each(function(index) { | |
$(this).parents('div').append(' ' + $(this).attr('title') + '<br/>'); | |
}); | |
$('.panelBountyHunterUniqueLocations div').css({ | |
'background-color': 'black', | |
'color' : 'white', | |
'text-align' : 'left', | |
'width': '500px', 'position' : 'relative', | |
'font-size' : '12px', | |
'padding' : '10px 0 10px 0' |
This file contains hidden or 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
$('input[type=text],input[type=password]').each(function(e, ob) { | |
var input = $(ob); | |
var id = input.attr('id').replace('ctl00_ContentPlaceHolder1_',''); | |
var parent = input.parent(); | |
var left = input.position().left + 2; | |
var top = input.position().top; | |
var idcallout = '<span id="span' + id + '" style="position: absolute; top: ' + top +'px; left: ' + left + 'px;">' + id + '</span>'; | |
$(parent).append(idcallout); | |
}); |
OlderNewer