- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Burger menu</title> | |
<style> | |
:root { | |
--burger-line-width: 26px; | |
--burger-line-height: 4px; |
-- Problem description found at https://code.dennyzhang.com/report-contiguous-dates | |
-- Schema and test data: | |
-- CREATE TABLE Failed(fail_date DATE); | |
-- CREATE TABLE Succeeded(success_date DATE); | |
-- INSERT INTO Failed VALUES ('2018-12-28'), ('2018-12-29'), ('2019-01-04'), ('2019-01-05'); | |
-- INSERT INTO Succeeded VALUES ('2018-12-30'),('2018-12-31'),('2019-01-01'),('2019-01-02'),('2019-01-03'),('2019-01-06'); | |
WITH RECURSIVE | |
tasks(dt, state) AS | |
(SELECT success_date, 'succeeded' |
curl https://clinicaltrials.gov/api/query/study_fields?fields=NCTId,Condition,OverallStatus,BriefTitle&expr=COVID-19&field=ConditionMeshTerm&fmt=csv
def is_vcf(vcffile): | |
"""Checks whether the given filename is a VCF file, handling | |
also the case of gzipped ones""" | |
import re | |
import gzip | |
try: | |
with open(vcffile, 'rb') as fp: | |
buf = fp.read(80) | |
if (buf[0] == 0x1F and | |
buf[1] == 0x8B and |
This is a comparison between CBOR, MessagePack, CSV, and JSON
import java.security.Security; | |
import java.security.spec.X509EncodedKeySpec; | |
import java.security.KeyFactory; | |
import java.security.spec.RSAPublicKeySpec; | |
import java.security.PublicKey; | |
class PEMtoPublicKey { | |
public static void public static void main(String[] args) { | |
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <linux/ioctl.h> | |
#include <linux/types.h> | |
#include <linux/v4l2-common.h> | |
#include <linux/v4l2-controls.h> | |
#include <linux/videodev2.h> | |
#include <fcntl.h> | |
#include <unistd.h> |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
typedef int TYPE; | |
typedef struct list_node { | |
struct list_node* next; | |
int x; |
#include <stdio.h> | |
#include <stdlib.h> | |
/** | |
* Definition for singly-linked list. | |
* */ | |
struct ListNode { | |
int val; | |
struct ListNode *next; | |
}; |