Skip to content

Instantly share code, notes, and snippets.

Avatar

Megh Parikh meghprkh

  • Bloomberg
  • London
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am meghprkh on github.
  • I am meghprkh (https://keybase.io/meghprkh) on keybase.
  • I have a public key ASAYrtkf-1crcIDKFouCRYuliwWZ5kM6qZLOfBKl2fl4dAo

To claim this, I am signing this object:

@meghprkh
meghprkh / iiith-moodle-attendance.user.js
Last active May 9, 2019
Convenient attendance viewing for IIIT-H Moodle - See first *comment* at the end of the page #userscript
View iiith-moodle-attendance.user.js
// ==UserScript==
// @name iiith-moodle-attendance
// @namespace http://meghprkh.github.io/
// @version 0.6
// @description Convenient attendance viewing for IIIT-H Moodle
// @author Megh Parikh <meghprkh@gmail.com>
// @match https://moodle.iiit.ac.in/my/
// @match https://moodle.iiit.ac.in/mod/attendance/view.php?*mode=1*
// @homepage https://gist.github.com/meghprkh/3ae064196d562f18d156c6d902505d20
// @updateURL https://gist.github.com/meghprkh/3ae064196d562f18d156c6d902505d20/raw/iiith-moodle-attendance.user.js
@meghprkh
meghprkh / Compress
Last active May 9, 2019
Nautilus Tweaks #fedora
View Compress
#!/bin/bash
xyz='file-roller '
IFS=$'\n'
for i in `echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"`
do
xyz="$xyz -d \"$i\""
done
eval "$xyz"
@meghprkh
meghprkh / mathjax-editing.js
Created Sep 14, 2016 — forked from gdalgas/mathjax-editing.js
StackExchange MathJax editing code
View mathjax-editing.js
// The MIT License (MIT)
//
// Copyright (c) 2016 Stack Exchange
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@meghprkh
meghprkh / python-is-shit.py
Created Aug 31, 2016
When you dont have compile time errors
View python-is-shit.py
#!!/usr/bin/env python3
import curses
class IO:
def __init__(self):
self.stdscr = curses.initscr()
self.stdscr.nodelay(True)
View fedora dcpp.md

Fedora dc++

  • NO LONGER NEEDED: Enable my copr repos:
    dnf copr enable meghprkh/eiskaltdcpp
    
  • Install eiskaltdcpp
    dnf install eiskaltdcpp-qt
    
@meghprkh
meghprkh / meson.build
Last active Jul 4, 2016
Vala wiki meson build
View meson.build
project('valaprog', ['c', 'vala'])
glib = dependency('glib-2.0')
gobject = dependency('gobject-2.0')
executable('valaprog', 'prog.vala',
dependencies: [glib, gobject])
View guid.vala
/**
* A class to store the GUID of the gamepad.
*
* The GUID is a unique 128-bit identifier issued by the driver which is
* dependent on the gamepad only and does not vary with time
*/
public class LibGamepad.Guid : Object {
/**
* Raw GUID data : 128-bits stored as eight 16-bit unsigned integers
*/
@meghprkh
meghprkh / demo_out.js
Created May 30, 2016
Guitar Tuner JSX GTK demo output
View demo_out.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;