Skip to content

Instantly share code, notes, and snippets.

View ryzokuken's full-sized avatar
⚔️
Fighting the borrow checker

Ujjwal Sharma ryzokuken

⚔️
Fighting the borrow checker
View GitHub Profile
let currentTimeout;
const unresponsiveAction = () => {
if (currentTimeout) {
clearTimeout(currentTimeout);
}
return new Promise((resolve, reject) => {
currentTimeout = setTimeout(() => {
currentTimeout = undefined;
resolve('Hi, looks like nobody\'s around just now. If you have a question, you can post it a https://publiclab.org/questions, or if you need help with a software issue, you can open an issue at https://github.com/publiclab/plots2/issues/new -- thanks!');

Keybase proof

I hereby claim:

  • I am ryzokuken on github.
  • I am ryzokuken (https://keybase.io/ryzokuken) on keybase.
  • I have a public key ASAwRb6XZ7SqRg1LIv7D75vxOQTYy9kdHN9nAMlZ6K93ggo

To claim this, I am signing this object:

" General Settings
set number
set nowrap
highlight LineNr ctermfg=white
set ignorecase
filetype plugin on
" Switch buffers using Alt+Arrow keys
nnoremap <M-Right> :bnext<CR>
nnoremap <M-Left> :bprevious<CR>
MMMMMMMMMMMMMMMMMMMMMMMMMmds+. ryzokuken@black-perl
MMm----::-://////////////oymNMd+` --------------------
MMd /++ -sNMd: OS: Linux Mint 18.1 Serena x86_64
MMNso/` dMM `.::-. .-::.` .hMN: Model: Aspire E5-573G V3.72
ddddMMh dMM :hNMNMNhNMNMNh: `NMm Kernel: 4.8.0-56-generic
NMm dMM .NMN/-+MMM+-/NMN` dMM Uptime: 11 mins
NMm dMM -MMm `MMM dMM. dMM Packages: 2480
NMm dMM -MMm `MMM dMM. dMM Shell: zsh 5.1.1
NMm dMM .mmd `mmm yMM. dMM Resolution: 1366x768
NMm dMM` ..` ... ydm. dMM DE: Xfce
#include <gtk/gtk.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Vital {
int current;
int maximum;
};
➜ ~ sudo pacman-mirrors -g
.: Info ping google.com x 1
.: Info ping repo.manjaro.org x 1
.: Info Downloading mirrors from repo.manjaro.org
.: Info Using default mirror file
.: Info Querying mirrors - This may take some time
1.050 Australia : http://mirror.ventraip.net.au/Manjaro/
1.339 Australia : http://manjaro.uberglobalmirror.com/
1.567 Australia : http://manjaro.mirror.serversaustralia.com.au/
1.362 Austria : http://mirror.inode.at/manjaro/
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
struct Complex {
int real;
int imaginary;
}
struct Complex addComplex(struct Complex* a, struct Complex* b) {
struct Complex c;
c.real = a->real + b->real;
c.imaginary = a->imaginary + b->imaginary;
return c;
{
"nodes": [
{"id": "Myriel", "group": 1},
{"id": "Napoleon", "group": 1},
{"id": "Mlle.Baptistine", "group": 1},
{"id": "Mme.Magloire", "group": 1},
{"id": "CountessdeLo", "group": 1},
{"id": "Geborand", "group": 1},
{"id": "Champtercier", "group": 1},
{"id": "Cravatte", "group": 1},
#include <stdio.h>
struct Time {
int hours;
int minutes;
int seconds;
};
struct Runner {
char name[20];