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 go() { | |
var userId = prompt('Username?', 'Guest'); | |
checkIfUserExists(userId); | |
} | |
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
function userExistsCallback(userId, exists) { | |
if (exists) { | |
alert('user ' + userId + ' exists!'); |
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
/* | |
I wasn't able to find a single example on how to actually use Dapper's new TVP, so I though I'd add one. | |
First of all, you will need to install the Dapper.TVP package from NuGet. | |
The main item to note is the need to create and populate a list of SqlDataRecords. This is then used to used as part of the | |
input parameter for Dapper's TableValueParameter. | |
The API is thus: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<meta name="author" content="Jeremy Ricketts"> | |
<meta name="description" content="Short description of this delightful website."> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="/css/style.css" rel="stylesheet" type="text/css"> | |
</head> |
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
#imgDiv { | |
width: 400px; | |
height: 400px; | |
background-image: url('http://placehold.it/400.png&text=New_Image/464545/e743c3'); | |
} |
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
Person you = GetCurrentPerson(); | |
//life motto | |
if (you.Mood == MoodState.Sad) | |
{ | |
// stop being sad | |
you.Mood = MoodState.Awesome; | |
}; | |
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
/*Setup WOW.js | |
1 | |
Link to the CSS animation library | |
Link to Animate.css | |
(You can link to another CSS animation library by changing WOW.js settings) | |
<link rel="stylesheet" href="css/animate.css"> |
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 go() { | |
var userId = prompt('Username?', 'Guest'); | |
checkIfUserExists(userId); | |
} | |
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users'; | |
function userExistsCallback(userId, exists) { | |
if (exists) { | |
alert('user ' + userId + ' exists!'); |
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
0.990455599104 | |
0.990131006372 | |
0.988156953132 | |
0.986346333872 | |
0.980186977796 | |
0.979454414848 | |
0.97899422699 | |
0.978388958838 | |
0.978292975683 | |
0.978014174891 |
OlderNewer