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
fun main(args: Array<String>) { | |
var s=0 | |
for (i in 1..173) { | |
s+=i*i; | |
} | |
println(s) | |
} |
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
// LOAD AJAX PAGES | |
function loadURL(url, container) { | |
$.ajax({ | |
type: "GET", | |
url: url, | |
dataType: 'html', | |
cache: true, | |
beforeSend: function(){ | |
container.html('<h1><i class="fa fa-cog fa-spin"></i> Loading...</h1>').fadeIn('fast'); | |
}, |
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
using System; | |
using System.Diagnostics; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Crtypto | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<configuration> | |
<connectionStrings> | |
<add name="hockeydb" | |
connectionString="Server=127.0.0.1;Port=5432;Database=hockeydb;User Id=demo;Password=demo;" | |
providerName="Npgsql" | |
/> | |
</connectionStrings> | |
<system.data> |
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 expect = require('expect') | |
var _matches = { | |
'{': { invert: '}', isOpening: true }, | |
'}': { invert: '{', isOpening: false }, | |
'(': { invert: ')', isOpening: true }, | |
')': { invert: '(', isOpening: false }, | |
'[': { invert: ']', isOpening: true }, | |
']': { invert: '[', isOpening: false } | |
}; |
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
//source | |
function strcasecmp (a, b){ | |
var size = a.length>=b.length?a.length:b.length; | |
var counter=0; | |
var aLow=a.toLowerCase(); | |
var bLow=b.toLowerCase(); | |
for(var i=0;i<size;i++){ | |
if((i<=aLow.length || i<=bLow.length) && aLow[i]!=bLow[i]){ |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
using System.Web.Http; | |
using System.Web.Http.Routing; | |
using System.Web.Mvc; |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
using System.Web.Http; | |
using System.Web.Http.Routing; | |
using System.Web.Mvc; |
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
using System; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Threading; | |
using Microsoft.Win32.SafeHandles; | |
namespace ConsoleApplication | |
{ | |
public class ProcessUtil : IDisposable | |
{ |
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
private static void ProcessHelper(string fileName, string arguments, bool showResultsinConsole) | |
{ | |
// Start the child process. | |
using (var p = new Process{ | |
StartInfo = | |
{ | |
UseShellExecute = false, | |
CreateNoWindow = true, |
OlderNewer