Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@psankar
psankar / main.go
Created February 26, 2023 12:05
golang cancel context example
package main
import (
"context"
"fmt"
"math/rand"
"sync"
"time"
)
{
"inputStr": [
["h", "w", "s", "b", "g"],
["a", "e", "o", "w", "o"],
["m", "l", "r", "e", "a"],
["e", "l", "l", "e", "r"],
["o", "d", "t", "d", " "]
],
"wantHashes": [
"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
CREATE TABLE IF NOT EXISTS public.test_cagg (
"time" timestamp WITH time zone NOT NULL,
col1 text NOT NULL,
col2 text NOT NULL,
col3 text NOT NULL,
col4 text NOT NULL,
col5 text NOT NULL,
col6 text NOT NULL,
col7 text NOT NULL,
col8 text NOT NULL,

முதற்கனல்

  • வானகங்கள் - சுவர்க்கம் (Heaven) தரவு: வையகமும் வானகமும் ஆற்றல் அரிது (குறள் எண்:101, அறத்துப் பால், இல்லற இயல், அதிகாரம்: செய்ந்நன்றியறிதல்)
  • ஊழ்கம் - தியானம்; செயமோகன் வலைப்பதிவு
  • பத்தி - வரிசை section
package main
import (
"fmt"
"runtime"
"time"
)
type LED struct {
state bool
package main
import (
"fmt"
"runtime"
"time"
)
type LED struct {
state bool
@psankar
psankar / GMailAutoDelete.js
Created January 17, 2017 07:17
GMailAutoDelete
function batchDeleteA() {
var batchSize = 100 // Process up to 100 threads at once
for (i = 0; i < 50; i++) {
var threads = GmailApp.search('label:"<LABEL_TO_DELETE>" older_than:2m');
for (j = 0; j < threads.length; j+=batchSize) {
GmailApp.moveThreadsToTrash(threads.slice(j, j+batchSize));
}
}
@psankar
psankar / Keech.in-CLA
Last active September 29, 2016 06:38
Keech.in Contribution License Agreement
=======================================
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to SANKARASIVASUBRAMANIAN (referred to as Sankar in the following text)
son of PASUPATHILINGAM.
Section 1: Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
@psankar
psankar / gist:7098370
Last active December 26, 2015 05:09
Recommended Reading

An unsorted list of articles/books/programs that I (from my limited perspective) recommend for people who want to become a good computer science engineer. These materials are needed not just for the direct learning that they provide but also for getting a grasp of the good taste of these authors.

Books and Papers

@psankar
psankar / venpa
Last active October 10, 2015 02:37
venpa
சூடிக் கொடுத்த சுடர்க்கொடி தேவதை
பாடிக் கொடுத்த பொலிவுறு பாக்களைத்
தேடிப் படிக்க தெரிந்தது காதலுடன்
கூடிக் களித்திடும் அன்பு
==============
கதிரவன் சிந்திய கீற்றுகள் சூட்டில்
சுதியொடு கூவிய சுந்தரப் பாட்டில்
துயிலது நீங்கிய தாமரைச் செண்டே