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; | |
namespace HackerRank | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int n = Convert.ToInt32(Console.ReadLine()); | |
string[] arr_temp = Console.ReadLine().Split(' '); |
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.Generic; | |
using System.IO; | |
class Solution { | |
static void Main(String[] args) { | |
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ | |
int n = Convert.ToInt32(Console.ReadLine()); | |
string[] arr_temp = Console.ReadLine().Split(' '); | |
long[] arr = Array.ConvertAll(arr_temp,Int64.Parse); | |
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.Generic; | |
using System.IO; | |
using System.Linq; | |
class Solution { | |
static void Main(String[] args) { | |
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */ | |
int n = Convert.ToInt32(Console.ReadLine()); | |
string[] arr_temp = Console.ReadLine().Split(' '); | |
long[] arr = Array.ConvertAll(arr_temp,Int64.Parse); |
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
############ These can be changed ######################## | |
#Homepage to start the crawl - n.b. the / forwardslash matters.... | |
$homepage = "qds.html" | |
#Used as validation for relative links, this also stops the site crawling outside of this domain (by breaking the URL for anythign other #than $rawdomain) | |
$rawdomain = "" | |
$outputfile = "E:\scripts\listofURLs.txt" | |
$secretfile = "E:\scripts\secret1.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
$(document).ready(function(){ | |
function resultCb(res){ | |
console.log(res); | |
res.sort(function(a, b){ | |
if(a < b) return -1; | |
if(a > b) return 1; | |
return 0; | |
}); | |
$.each(res,function(title){ | |
$(".news-body").append("<div>" + title+"</div"); |
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
@section Scripts { | |
<script src="~/Scripts/tcp/pdfmake.min.js"></script> | |
<script src="~/Scripts/tcp/vfs_fonts.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$('.form-horizontal :input').attr('disabled', 'disabled'); | |
}); | |
function printPdfMake() { |
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
const nsfw = require('nsfw'); | |
const path = require('path'); | |
function watch(pathParam,fnName) { | |
console.log(pathParam); | |
const absolutePath = pathParam;// path.resolve(pathParam) | |
console.log(`Watching ${absolutePath}`) | |
nsfw(absolutePath, | |
function(events) { |
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
public class CustomContractResolver : DefaultContractResolver | |
{ | |
private Dictionary<string, string[]> PropertyMappings { get; set; } | |
public CustomContractResolver() | |
{ | |
this.PropertyMappings = new Dictionary<string, string[]> | |
{ | |
{"Values", new string[]{"AU", "EU" } } | |
}; |
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
$targetDir= "C:\data" | |
get-ChildItem $targetDir | select name | OUT-File "C:\log\files.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
let userRValue = toastr.warning("This query name already exists. Query will be saved as name_copy. <br /><button type='button' value='yes' class='btn clear'>Yes</button><button type='button' value='no' >No</button>", | |
'Are you sure to continue?', | |
{ | |
allowHtml: true, | |
timeOut: 0, | |
extendedTimeOut: 0, | |
onclick: function (toast) { | |
let userResponseValue = toast.target.value; | |
if (userResponseValue == 'yes') { | |
console.log(toast.target.value, 'carai'); |
OlderNewer