Skip to content

Instantly share code, notes, and snippets.

View AshV's full-sized avatar
🚩
Help me https://www.ashishvishwakarma.com/helpme/

Ashish Vishwakarma AshV

🚩
Help me https://www.ashishvishwakarma.com/helpme/
View GitHub Profile
@iwek
iwek / csv-to-json.js
Last active July 5, 2024 14:29
CSV to JSON Conversion in JavaScript
//var csv is the CSV file with headers
function csvJSON(csv){
var lines=csv.split("\n");
var result = [];
var headers=lines[0].split(",");
for(var i=1;i<lines.length;i++){
@fekberg
fekberg / SOS_Morse.cs
Created December 12, 2013 02:16
Here's how you do SOS Morse Code in C#.
var sequence = Enumerable.Range(0, 3).ToList();
while(true) {
sequence.ForEach(e => Console.Beep(650, 100));
Thread.Sleep(200);
sequence.ForEach(e => Console.Beep(650, 400));
Thread.Sleep(200);
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Collections.Generic;
public class SSEvent {
public string Name { get; set; }
public string Data { get; set; }
@kimerran
kimerran / Succinctly_dl.cs
Created July 7, 2014 08:34
download FREE ebooks
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using c = System.Console;
using System.IO;
using System.Net;
namespace StretchUtak
{
class Program
@prasanthj
prasanthj / chrome-ext-tab-url.js
Created December 15, 2014 20:00
Chrome extension get tab url
chrome.tabs.query({'active': true, 'lastFocusedWindow': true, 'currentWindow': true}, function (tabs) {
var url = tabs[0].url;
console.log(url);
});
@coolaj86
coolaj86 / github-pages-https-lets-encrypt.md
Last active November 16, 2021 22:36
Github Pages: Let's Encrypt!
@DanDiplo
DanDiplo / JS-LINQ.js
Last active May 21, 2025 01:37
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@stevenswafford
stevenswafford / google-dorks
Created June 6, 2015 05:57
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@LindaLawton
LindaLawton / GoogleDriveServiceAccountcsharp
Created July 22, 2015 07:22
accessing google drive with a service account and C#
string[] scopes = new string[] {DriveService.Scope.Drive}; // Full access
var keyFilePath = @"c:\file.p12" ; // Downloaded from https://console.developers.google.com
var serviceAccountEmail = "[email protected]"; // found https://console.developers.google.com
//loading the Key file
var certificate = new X509Certificate2(keyFilePath, "notasecret", X509KeyStorageFlags.Exportable);
var credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer(serviceAccountEmail) {
Scopes = scopes}.FromCertificate(certificate));
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active May 28, 2025 00:06
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)