Skip to content

Instantly share code, notes, and snippets.

View Doaxan's full-sized avatar
🎯
Focusing

Amir Fazleev Doaxan

🎯
Focusing
View GitHub Profile
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 1;
shadow-red = 0.0;
shadow-green = 0.0;
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 1;
shadow-red = 0.0;
shadow-green = 0.0;
# Maintainer: D. Can Celasun <dcelasun[at]gmail[dot]com>
pkgname=visual-studio-code
pkgver=1.6.1
pkgrel=0
pkgdesc="Editor for building and debugging modern web and cloud applications (official binary version)"
arch=('x86_64' 'i686')
url="https://code.visualstudio.com/"
license=('custom: commercial')
provides=('vscode','visualstudiocode')
[root]
name = "hello"
version = "0.1.0"
dependencies = [
"cards 1.1.2 (git+https://github.com/th4t/cards-rs.git)",
"holdem 0.1.2 (git+https://github.com/th4t/holdem-rs.git)",
"pokereval 0.1.2 (git+https://github.com/th4t/pokereval-rs.git)",
]
[[package]]
# bspwm hotkeys
#
# Cleanly quit bspwm
#super + shift + q
# bspc quit 1 && pkill lemonpanel && pkill lemonbar
#super + space
# synapse
#! /bin/sh
gap=4
PANEL_HEIGHT=22
BORDER_WIDTH=2
export gap
export PANEL_HEIGHT
export BORDER_WIDTH
#This creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
bspc config window_gap $gap;
##run_once is a script in /usr/bin that prevents running script if it is running already
##
## To enable pulseaufio, uncomment this and run sudo pacman -S pavucontrol pulseaudio-ctl manjaro-pulse
#pulseaudio --start &
#sleep 2s && volume 37 &
## Load appearance settings
xsetroot -cursor_name left_ptr &
#export GTK2_RC_FILES="$HOME/.gtkrc-2.0" &
#xrdb merge .Xresources &
xfsettingsd --sm-client-disable &
@Doaxan
Doaxan / playground.rs
Created August 22, 2017 13:00 — forked from anonymous/playground.rs
Rust code shared from the playground
/**
Simple example on how to use the nwg template system.
*/
#[macro_use] extern crate native_windows_gui as nwg;
use nwg::{Event, Ui, simple_message, fatal_message, dispatch_events};
/// Custom enums are the preferred way to define ui ids. It's clearer and more extensible than any other types (such as &'str).
#[derive(Debug, Clone, Hash)]
[doaxan@doaxan-pc untitled]$ nimble build -d:release -f
Verifying dependencies for untitled@0.1.0
Building untitled/untitled using c backend
Tip: 5 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: untitled
... Details:
... Execution failed with exit code 1
... Command: "/usr/bin/nim" c --noBabelPath -d:release -f -o:"/home/doaxan/Dev/Nim/untitled/untitled" "/home/doaxan/Dev/Nim/untitled/src/untitled.nim"
... Output: Hint: used config file '/etc/nim.cfg' [Conf]
... Hint: system [Processing]
@Doaxan
Doaxan / main_slow.rs
Last active September 4, 2018 10:39
rust_slow_12sec
fn main() {
let mut count = 0;
for k in 2_u32..3 {
for x in 1_u32..101 {
for a in 1_u32..101 {
for b in 1_u32..101 {
for c in 1_u32..101 {
for d in 1_u32..101 {
if u32::pow(x, k) == u32::pow(a, k) + u32::pow(b, k) + u32::pow(c, k) + u32::pow(d, k) {
count += 1;