command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
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
.metalic { | |
z-index: 0; | |
background-blend-mode: difference; | |
box-sizing: border-box; | |
&:is(:is(input), :has(input)) | |
{ /* self or descendant is input, so input associated */ | |
/* display: none; */ | |
input&, & input{ /* all input elements */ | |
appearance: none; |
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
// todo: to avoid passing a variadic-size value to read-size argument in read(), | |
// give constant-size argument to read-size argument, In this case it will read | |
// constant-size byte and will store in the buff1 and if nl is not exist when | |
// checked nl in buff1 then part of buff1 that not contains nl is stored in | |
// buff2 then read again and store to buff1. Finally, concatenate buff2 with up | |
// to the nl part of buff1. buff2 must be read-size bytes in size. | |
string get_line_segment(int des) { | |
static char buff[BUF_LEN] = { }; | |
static size_t req_len = BUF_LEN - 1; | |
static size_t res_len = read(des, buff, req_len); |
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/bash | |
if [ $# -lt 2 ]; then | |
echo "usage: $0 <tar name> <dest to backup dir> [exclude files...]" | |
exit 1 | |
fi | |
# $1 -> tar name | |
# $2 -> dest to backup | |
# ${@:3} |
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
typedef union flt | |
{ | |
float num; | |
struct | |
{ | |
char b1; | |
char b2; | |
char b3; | |
char b4; |
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
alias normod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.1 -g 0.95 -b 1 -t 5500" | |
alias kodmod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.2 -g 1 -b 1 -t 5500" |
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 | |
set -e | |
# Before we get the token, redirect stdout to stderr. | |
exec 3>&1 1>&2 | |
export LC_ALL=C | |
echo() { |
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
#include <iostream> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
using std::string; | |
# define ﷲ main | |
# define ﷳ return | |
# define ﷰ int |
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
CFRunLoopAddObserver|CFRunLoopAddTimer|CFRunLoopGetMain|CFRunLoopObserverCreate|CFRunLoopTimerCreate|CFRunLoopTimerInvalidate|NSApp|NSDefaultRunLoopMode|OBJC_CLASS_$_NSApplication|OBJC_CLASS_$_NSDate|OBJC_CLASS_$_NSNotificationCenter|OBJC_CLASS_$_NSOpenGLContext|OBJC_CLASS_$_NSOpenGLPixelFormat|OBJC_CLASS_$_NSOpenGLView|OBJC_CLASS_$_NSRunningApplication|OBJC_CLASS_$_NSString|OBJC_CLASS_$_NSWindow|OBJC_METACLASS_$_NSObject|OBJC_METACLASS_$_NSOpenGLView|OBJC_METACLASS_$_NSWindow|TransformProcessType|__CFConstantStringClassReference|__bzero|__cxa_atexit|__stack_chk_fail|__stack_chk_guard|__stderrp|_objc_empty_cache|atoi|close|cos|exit|fputs|free|fwrite|glActiveTexture|glAttachShader|glBindBuffer|glBindTexture|glBlendEquation|glBlendFunc|glBufferData|glClear|glClearColor|glCompileShader|glCreateProgram|glCreateShader|glDeleteBuffers|glDeleteProgram|glDeleteShader|glDeleteTextures|glDisable|glDisableVertexAttribArray|glDrawArrays|glEnable|glEnableVertexAttribArray|glFlush|glGenBuffers|glGenTextures|glGetAttribLoca |
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
CC = clang++ | |
CXXFLAGS = -std=c++98 -pedantic | |
LXXFLAGS = | |
RUNFLAGS = | |
NAME = program | |
LIB = | |
SRC_DIR = . | |
INC_DIR = |
NewerOlder