Skip to content

Instantly share code, notes, and snippets.

View coolharsh55's full-sized avatar

Harshvardhan Pandit coolharsh55

View GitHub Profile
@coolharsh55
coolharsh55 / regex.c
Created December 18, 2015 21:25
Using regex search & extract in C
#include <stdio.h>
#include <string.h>
#include <regex.h>
int main(int argc, char** argv)
{
int regex_error = 0; // error generated in execution of regex
regmatch_t pm[10]; // regex matches
regex_t r_compiled; // compiled regex
@coolharsh55
coolharsh55 / gcs_signed_urls.py
Created December 15, 2015 19:45
Create signed urls for Google Cloud Storage with JSON file
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Creates a signed URL for accessing Google Cloud Storage objects for the
specified time period"""
import base64
import json
import time