Skip to content

Instantly share code, notes, and snippets.

@mrahul17
mrahul17 / voice.xml
Created October 29, 2018 07:05 — forked from vinayb21/voice.xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice">Record your message in three, two, one, start.</Say>
<Record action="http://90e3ae2d.ngrok.io/paper/record_call" recordingStatusCallback="http://90e3ae2d.ngrok.io/paper/set_record_url" timeout="10" maxLength="15" playBeep="true" />
<Hangup/>
</Response>
@mrahul17
mrahul17 / gist:a88bc9f20ad0e6eb55d417713748ad15
Created June 6, 2016 06:30
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@mrahul17
mrahul17 / redshift.conf
Last active April 1, 2016 04:49 — forked from bcomnes/redshift.conf
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
; Global settings
[redshift]
temp-day=6500K
temp-night=5000
transition=1
;gamma=0.8:0.7:0.8
gamma=1.000:1.000:1.000
;location-provider=geoclue (no more internet connection required!!)
location-provider=manual
adjustment-method=vidmode
@mrahul17
mrahul17 / binary-search-tree-cpp.cpp
Created March 9, 2016 14:02 — forked from mgechev/binary-search-tree-cpp.cpp
Simple implementation of binary search tree in C++.
#include <iostream>
#include <math.h>
using namespace std;
template <class T>
struct Node {
T value;
Node *left;
Node *right;
@mrahul17
mrahul17 / ipow.c
Created December 9, 2015 13:53 — forked from orlp/ipow.c
int64_t ipow(int32_t base, uint8_t exp) {
static const uint8_t highest_bit_set[] = {
0, 1, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 255, // anything past 63 is a guaranteed overflow with base > 1