Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar
💭
🌔

Siddharth Kannan icyflame

💭
🌔
View GitHub Profile
@gabrielemariotti
gabrielemariotti / README.md
Last active May 3, 2025 05:23
A SectionedGridRecyclerViewAdapter: use this class to realize a simple sectioned grid `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned grid RecyclerView.Adapter without changing your code.

Screen

The RecyclerView has to use a GridLayoutManager.

This is a porting of the class SimpleSectionedListAdapter provided by Google

If you are looking for a sectioned list RecyclerView.Adapter you can take a look here

@icyflame
icyflame / 2x2-timeDump.md
Last active October 4, 2015 07:51
My Rubik's Cube solve times

13.48, 19.92, 18.19, 13.55, 26.46, 29.31, 23.64, 15.61, 11.28, 15.15, 14.23, 21.19, 12.81, 20.32, 12.77, 18.37, 12.91, 18.38, 11.76, 18.91, 13.72, 13.73+, 21.99, 10.84, 19.35, 14.94, 13.11, 14.06, 16.06, 15.25, 12.66, 14.03, 29.67, 16.22, 17.71, 22.26, 18.79+, 11.54+, 19.14, 14.65, 18.05, 16.67, 27.10+, 25.78, 23.52, 20.90, 17.65, 16.10, 13.48, 16.85, 17.68, 9.84, 7.89, 31.84, 18.83, 13.20, 16.63, 15.79, 12.78, 13.72, 17.54, 8.20, 14.63, 16.15, 13.00, 13.54, 17.29, 17.68, 13.21, 22.07+, 15.70, 11.94, 10.99, 12.72, 21.04, 17.27, 15.05, 13.41, 15.99, 18.03, 16.95, 18.95, 14.56, 25.40, 17.38, 17.99+, 13.93, 14.70, 16.95, 13.08, 18.33, 15.46, 12.21, 13.43, 13.89, 10.72, 8.58, 16.09, 14.31, 22.44, 17.10, 15.65, 10.97, 24.82, 14.92, 14.29, 16.04, 14.26, 19.15, 16.70, 15.64, 13.14, 11.93, 11.84, 14.13, 11.72+, 14.34+, 11.96, 14.32, 19.72, 9.65, 17.30, 12.19, 15.25, 11.15, 11.50, 15.38, 15.53, 17.87, 17.37, 14.32, 16.87, 10.51, 15.01, 7.79, 10.00, 14.94, 9.69, 16.13, 11.10, 14.46+, 12.10, 21.13+, 13.00, 20.50, 26.67,

JavaScript resources, all free online. They're ordered in diffuculty from top to bottom.
http://jsforcats.com/
https://www.youtube.com/playlist?list=PLeL6uTxQ-uX_5BpOb2FDNgG6SxjCs59Kv
https://www.youtube.com/watch?v=hQVTIJBZook
https://www.khanacademy.org/computing/computer-science/algorithms
http://speakingjs.com/es5/index.html
http://eloquentjavascript.net/index.html
http://superherojs.com/
https://www.youtube.com/watch?v=8aGhZQkoFbQ
@icyflame
icyflame / times.csv
Last active October 23, 2015 10:36
All the solvetimes as recorded in CLI Cube Timer, https://npmjs.org/package/cli-cube-timer
54.21 F2 D F U R2 U' B D F' R D2 R F' U F' D' L F R B2
27.03 L2 F R F' D R' D2 L F L2 F2 D B' R' F L F' R' F L2
57.86 F2 L B D B' U R2 U' L' F' D' R2 D' L2 D L2 D2 F U' L2
35.24 L U' F2 U R2 U' R' D' B R' D' F' L' U2 F' D2 R2 B2 R B2
38.75 R2 D B2 D L2 U' F2 U L U R B2 L2 F2 D' B' L2 F' R' F2
42.63 F' L F2 U F' U2 R' F2 U R' F' D' R2 B R' B R D R2 D'
71.37 U' F' R' F U' R2 F D2 F R' U F' U R2 B D R F U2 B'
32.94 F2 R D' L2 F' R2 U2 L2 U L2 B D' R2 D' F L B2 U' B2 U'
38.53 L' B2 U L' U2 F' U2 F U2 L2 D F2 D2 R' B' L2 F2 R F2 L'
50.42 B R' B2 D' R2 U R2 F R' U L' D' L D F' D L F2 R' F2
JavaScript resources, all free online. They're ordered in diffuculty from top to bottom.
http://jsforcats.com/
https://www.youtube.com/playlist?list=PLeL6uTxQ-uX_5BpOb2FDNgG6SxjCs59Kv
https://www.youtube.com/watch?v=hQVTIJBZook
https://www.khanacademy.org/computing/computer-science/algorithms
http://speakingjs.com/es5/index.html
http://eloquentjavascript.net/index.html
http://superherojs.com/
https://www.youtube.com/watch?v=8aGhZQkoFbQ
@user3415653
user3415653 / Interview.txt
Last active September 4, 2016 17:27 — forked from arafatkamaal/Interview.txt
Interview tips
Almost all of the questions posted in this sub are some form of "what do I have to know/do to pass a tech interview/get a job." Here's some distilled advice I can offer from having conducted over 1000 tech interviews. This doesn't cover everything, but I think it covers the most important foundational elements.
Setting expectations: If this is your first time looking for a job, or you haven't had to interview in a number of years, expect to invest some effort in preparing for the interview. It's usually the industry professionals that completely ignore this step, but some college students do as well. You're essentially studying for a test, don't slack off - it's going to be work. All of those things that you've been telling yourself don't matter (maybe you're a bit fuzzy on how exactly the internet works - do you really know what happens after you hit enter on the URL bar?) that you don't know - now it's time to address those gaps head on. So, what matter.
For the sake of space, I'm going to focus on what a
@icyflame
icyflame / 154.md
Last active December 5, 2015 18:10
Submissions to the weekly competitions at /r/Cubers

3x3: (21.78) 24.35 22.00(26.08) 25.35 = 23.90
3x3OH: 51.52 (1:13.20) 58.18 (51.07) 58.78 = 56.16
BLD: (4:45.29) (DNF) 6:22.92 DNF 8:01.33 = 4:45.29

Hello, and welcome to the /r/cubers weekly competitions! If you're new, please read the entire post before competing! This is competition 157, and will go until November 15 at 2100 EST.
There’s a rotation of 4 events to be held once a month: 5x5, BLD, Skewb, and Pyraminx. You can also request an event to be done! If you want an event in an upcoming competition, write it with your results. One event will be done per week. You must be able to do the event you're requesting.
To compete:
> 1. Scramble your cube, in the event that you are doing, with the scrambles provided. For OLL, do the alg 5 times.
>1. Using a timer, such as [cstimer] (http://cstimer.net/timer.php) or [qqtimer] (http://www.qqtimer.net/), time your 5 solves and record the results. You are given up to 15 seconds to inspect the cube for each event.
@joepie91
joepie91 / vpn.md
Last active July 27, 2026 13:26
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@icyflame
icyflame / suggested-crontab-file.md
Last active January 6, 2016 14:24
Suggested Crontab file for a Students' Alumni Cell, IIT Kharagpur server

Crontab file

# m h  dom mon dow   command
10 * * * * cd path-to-website && git pull --ff-only upstream gh-pages
11 * * * * cd path-to-website && git pull --ff-only upstream master
12 * * * * cd /home/<username>/database-backups/ && mysqldump -ubackup_user -p<password> <database-name> > <database-name>-`date +%Y-%m-%d`.sql && gist -u <gist-id> `ls -t | head -1`
30 12 * * 1 cd /home/<username>/database-backups/ && rm -rf *.sql