Skip to content

Instantly share code, notes, and snippets.

View concatime's full-sized avatar

Issam Maghni concatime

  • Silicon Laboratories, Inc
  • Montréal, QC.
View GitHub Profile
# WATCHOUT, THIS WILL ERASE YOUR .VIMRC & TESTED ONLY UNDER UBUNTU 17.10
LJVER=2.1.0-beta3 # LuaJIT
VMVER=8.0 # VIM
CFLAGS+=-pipe
MAKEFLAGS+=-j`nproc`
CC=clang
[ -z $1 ] || { CC=$1; }
export CC CFLAGS MAKEFLAGS
set -e
import java.util.ArrayList;
interface Solver
{
byte INDEX = 73; // Nième valeur recherchée
static void main(final String... args) {
buffer.add(6d); // 0
buffer.add(-16d); // 1
buffer.add(396d); // 2

apt-transport-https

First, if you are on Ubuntu Cosmic, you need to manually compile json-c because the version provided is 0.12.1, but sway requires at least version 0.13. It is pretty straight forward, so take a look here.

Then, we need to install common dependencies between wlroots and sway-1.0.

sudo apt install gcc pkgconf meson ninja-build libwayland-dev libinput-dev libcap-dev

Secondly, we need to install wlroots dependencies.

@concatime
concatime / index.html
Last active April 30, 2024 06:05
SVG to image to canvas to PNG/JPEG/... (URI/URL and Blob)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<svg height=500 width=500>
<circle cx=250 cy=250 r=200 stroke="black" stroke-width=3 fill="red" />
Sorry, your browser does not support inline SVG.
#include <stdio.h> /* fputs, printf, puts, stderr */
#include <stdlib.h> /* EXIT_FAILURE, EXIT_SUCCESS, exit */
#include <sys/resource.h> /* RLIM_INFINITY, RLIMIT_RTPRIO, getrlimit, setrlimit, struct rlimit */
#include <unistd.h> /* pause */
int main(void) {
struct rlimit rtprio;
if (getrlimit(RLIMIT_RTPRIO, &rtprio)) {
fputs("failed to get cur/soft rtprio\n", stderr);