Skip to content

Instantly share code, notes, and snippets.

View tnngo2's full-sized avatar

Chris Ngo tnngo2

View GitHub Profile
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script src="https://gist.githubusercontent.com/tnngo2/9c27c8aa5c91b9f13f6f93fd46dd94c2/raw/3f3b641cada3fc069dc77e12cfc3467bd0b75adb/jsbin.vopahof.js"></script>
<script id="jsbin-javascript">
function execCallAsync () {
console.log('exeCallAsync:start');
callAsync();
sleep(9000);
console.log('exeCallAsync:end');
}
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script id="jsbin-javascript">
function callAsync (){
console.log('callAsync:start');
$.ajax({
url : 'google.com'
}).done(function(){
console.log('callAsync:done');
})
console.log('callAsync:end');
using System;
namespace Theory10
{
class Lambda
{
static void Main(string[] args)
{
Func<int, int> a = i => i*i;
Console.WriteLine(a(2));
using System;
namespace Theory10
{
public class FileWriter
{
string fn = null;
public static void Main()
{
FileWriter fw = new FileWriter();