This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// go to Ctrl-p > configure snnippets > c++ | |
// then copy paste this file | |
// use keyword `omg` to trigger | |
"plain ahh cp snippet": { | |
"prefix": ["omg"], | |
"body": ["#include <bits/stdc++.h>\nusing namespace std;\n\nvoid solve() {\n\t$0\n}\n\nint32_t main(){\n\tint t;cin>>t;while(t--) solve();\n}\n"], | |
"description": "chads only template" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# make sure you have homebrew already installed | |
brew installed llvm | |
git clone https://github.com/ziglang/zig.git | |
cd zig | |
mkdir -p build | |
cd build | |
# for fast build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
wordlist = [ | |
"caused", | |
"ultimately", | |
"engineering", | |
"automatically", | |
"dimensional", | |
"warranty", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set-option -g prefix C-a | |
# Base16 Styling Guidelines: | |
base00=default # - Default | |
base01='#151515' # - Lighter Background (Used for status bars) | |
base02='#202020' # - Selection Background | |
base03='#909090' # - Comments, Invisibles, Line Highlighting | |
base04='#505050' # - Dark Foreground (Used for status bars) | |
base05='#D0D0D0' # - Default Foreground, Caret, Delimiters, Operators |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, Menu, Tray } = require('electron'); | |
const {exec } = require('child_process'); | |
let tray = null ; | |
app.whenReady().then(()=> { | |
tray = new Tray('/home/roz/downloads/icon.jpeg') | |
const contextMenu = Menu.buildFromTemplate([ | |
{label: '1%' , click(){ | |
exec("xbacklight -set 1"); | |
}} ,{label: '5%' , click(){ | |
exec("xbacklight -set 5"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim-bootstrap 2020-11-25 12:57:59 | |
"***************************************************************************** | |
"" Vim-Plug core | |
"***************************************************************************** | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') | |
if has('win32')&&!has('win64') | |
let curl_exists=expand('C:\Windows\Sysnative\curl.exe') | |
else | |
let curl_exists=expand('curl') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestDecodeIETF | |
TestDecodeIETF: ietf-28_test.go:25: Public Flags: 0 | |
CID: 8e20dc50ed17bacb | |
Version: ff00001c | |
Packet Number: 0 | |
Message Authentication Hash: | |
Frame Type: 0 | |
Stream ID: 0 | |
Data Length: 0 | |
Tag: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"github.com/marten-seemann/qtls" | |
) |
NewerOlder