Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar

Siddharth Kannan icyflame

View GitHub Profile
@icyflame
icyflame / times.csv
Last active December 8, 2019 06:02
All the solvetimes as recorded in CLI Cube Timer, https://npmjs.org/package/cli-cube-timer
33.85 R2 B2 U R F' L2 D B R D2 B D' R' B' L' U B R B2 R2
25.56 F R D B2 R2 F2 U' L' U R2 U2 L' U B2 L D2 R2 F R2 F2
27.02 D' B D B D' B2 L' D R2 D L D R' U L' F' R' F2 D' R2
36.17 F2 R' U' R F' D R2 D2 B' U B U' B2 R2 U' R' B' L B' L2
24.93 B2 U2 F U L' D2 B' U2 R B2 D2 B U' L F' D R D F' U'
29.37 U' F' U2 B2 U L2 F' U' B D L' F2 L2 U2 F2 L F L2 D2 L
21.87 U2 R' B D R' B' R' F2 L B' D R' D2 R2 B' L' U B' U' R
26.90 F' R2 U' B' D2 R2 D2 R2 B' U' L D2 R2 F' D R B D B2 L'
25.08 D L U' R2 F L2 B' L' D L B' D' L2 F' R2 B' L B2 D B
26.60 U' B' L U' F2 R2 F U L2 B U2 F' L D2 F2 U' B U' L2 D'
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <limits.h>
using namespace std;
#define go(i, n) for (i = 0; i < n; ++i)
int *arr = NULL;

This is a random gist that I am typing because I have to ensure that GPG get's enough random bytes using the entropy that these random actions create to create the 4096 no password key that I have just asked it to create.

It still needs 98 more bytess! ARGH, I AM RUNNING A modern family episode in VLC in the background because disk usage generates entropy also, apparently.

@nuwanda Welcome back, glad to see you here after a decade ( was it longer? feels like forever. :P )

I think that poll has already been run once, and while a poll can be run using even something like Google Forms.

The change.org site is interesting, I can think of many things that can be petitioned and everyone would agree with. A few examples that I can think of now are:

  1. Outside department open elective requires the approval of FacAd, HOD and course instructor. This process is long and cumbersome, I think that people should be allowed to take subjects as long as the course teacher is okay with it.
@icyflame
icyflame / c-cheatsheet.md
Last active July 13, 2017 06:39
A cheat sheet for some of the common c code that's often used

#define

#define iterate(i, n) for (i = 0; i < n; ++i)
#define print_int_arr(arr, i, n) for (i = 0; i < n; ++i) printf("%d, ", arr[i]);

qsort

@icyflame
icyflame / tmux-cheatsheet.markdown
Created May 31, 2017 05:14 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@icyflame
icyflame / replace.js
Last active May 19, 2017 07:17
Replace commas according to the Indian numbering system
t = [1, 12, 123, 1234, 12345,
123456, 1234567, 12345678,
123456789, 1234567890,
12345678901, 123456789012];
function convert(x) {
return x.toString().substr()
.replace(/\B(?=\d{3}$)/g, ",")
.replace(/\B(?=(\d{2})+(?!\d),)/g, ",")
};

Ah, thanks for making me think more about it! :D

First of all, if writing was Tom's true dream, he ought to have done something concrete towards it. But let's not talk about that, because he probably has a lot of reasons why he can't do it.

Why Sam doesn't exist:

If writing is your dream and you have a day-job, you can find maybe 1 hour of worthwhile free time that you might spend doing something else. Say Tom doesn't

sudo apt-get install autotools-dev bison gfortran gfortran-5 libbison-dev libdrm-dev libgfortran-5-dev libgfortran3 libgl1-mesa-dev libglu1-mesa-dev libhwloc-dev libhwloc-plugins libhwloc5 libibverbs-dev libibverbs1 libitpp-dev libitpp8v5 liblapack3 libltdl-dev libnuma-dev libopenmpi-dev libopenmpi1.10 libpthread-stubs0-dev libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-scripttools libqt4-svg libqt4-test libsigsegv2 libtool libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxshmfence-dev libxxf86vm-dev m4 mesa-common-dev mpi-default-dev ocl-icd-libopencl1 openmpi-bin openmpi-common qt4-linguist-tools qt4-qmake x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11prot
  1. Can you tell us why you have made these choices?

To follow the myriad characters around for about 5000 pages of text and then a lot of hours on the show is an incredible experience. It's like being transported to a different time with different customs, different traditions, a different way of life.

As commentary, I think that is a fairly relevant. Especially considering things like Joffrey becoming king before his younger brother because of tradition even though Tommen is obviously a better ruler because of his quite demeanour and the way he doesn't like to torture people.

There might be more references in the commentary side if you really go searching for it, but I chose not to do that because I really want to enjoy ASOIAF as a work of fiction and art, rather than make it political.

  1. Is there one debate or controversy that has particularly stood out for you? What were your views on it?