Skip to content

Instantly share code, notes, and snippets.

View shriphani's full-sized avatar

Shriphani Palakodety shriphani

View GitHub Profile
@shriphani
shriphani / money_essays.md
Created March 27, 2024 19:43
Essays On Money
@shriphani
shriphani / gist:8675874
Last active June 24, 2023 02:45
Racket code for the little schemer
#lang racket
;; Code for the little schemer
(define (atom? x)
(and (not (pair? x))
(not (null? x))))
(define (lat? l)
(cond ((null? l) #t)
import fcntl
import struct
import os
import requests
from scapy.all import *
TUNSETIFF = 0x400454ca
TUNSETOWNER = TUNSETIFF + 2
IFF_TAP = 0x0002
@shriphani
shriphani / scrape-crawler-beans.cxml
Created March 26, 2013 20:16
heritrix config file to scrape pages with a particular url format (specified using a regex).
<?xml version="1.0" encoding="UTF-8"?>
<!--
clueweb12++ Crawl job configuration file
========================================
This file is the template for the job configurations.
It is based on the sample Heritrix 3 job. configuration file.
https://chocolatey.org/
(defproject sutime-clojure "0.1.0-SNAPSHOT"
:description "Wrapper around the time functionality in Stanford NLP Suite"
:url "https://github.com/shriphani/sutime-clojure"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.4.0"]
[edu.stanford.nlp/stanford-corenlp "1.3.4"]
[edu.stanford.nlp/stanford-corenlp "1.3.4" :classifier "models"]
[clj-time "0.5.0"]]
:jvm-opts ["-Xmx2000M"]
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 12 columns, instead of 4. in line 9.
New_Camp_SSID,New_Camp_Name,Site_Name_Alias,Settlement Type,District,Upazila,Union,Geo_Code,Total_HH,Total_Pop,Latitude,Longitude
CXB-201,Camp 1E,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,9333,40538,21.21603208,92.15620182
CXB-202,Camp 1W,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,9477,41061,21.21321008,92.15332624
CXB-203,Camp 2E,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,7299,30168,21.20660833,92.16429444
CXB-204,Camp 2W,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,5979,26048,21.20918388,92.1582899
CXB-205,Camp 3,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,9200,39659,21.20887633,92.14952267
CXB-206,Camp 4,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,7947,32389,21.20842486,92.14435786
CXB-232,Camp 4 Extension,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,1492,6172,21.20842486,92.14435786
CXB-209,Camp 5,,Collective site,Cox's Bazar,Ukhia,Palong Khali,20229479,6048,25122,21.20334766,92.15174473
CXB-208,Camp 6,,Collective
### Keybase proof
I hereby claim:
* I am shriphani on github.
* I am shriphani (https://keybase.io/shriphani) on keybase.
* I have a public key ASBvDuacD7KVUfaHZz26cPYLhHnx940yKLEEXeqEE7qmdAo
To claim this, I am signing this object: