Skip to content

Instantly share code, notes, and snippets.

View chalist's full-sized avatar
🏠
Working from home

Chalist chalist

🏠
Working from home
View GitHub Profile
@chalist
chalist / p1.php
Last active August 7, 2017 01:50
ptp
<?php
$ch_amount_required = get_post_meta($post->ID, "wccaf_amount_required", true);
$ch_product_unit = get_post_meta($post->ID, "wccaf_product_unit", true);
if ($ch_amount_required) {
?>
<div class="amount_required">
<h3 class="available-title">محاسبه مقدار مورد نیاز شما</h3>
<input type="hidden" value="<?php echo $ch_amount_required ?>" id="ch_amount" />
@chalist
chalist / Gruntfile.js
Created August 21, 2016 11:06
Grunt example file
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'generator/static/generator/js/*.js'],
options: {
globals: {
jQuery: true,
var gulp = require('gulp');
var bs = require('browser-sync').create();
gulp.task('browser-sync', [], function() {
bs.init({
server: {
baseDir: "./"
}
});
});
@chalist
chalist / .Xresources
Created January 21, 2015 19:06
.Xresources for urxvt
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
URxvt.url-select.launcher: chromium
URxvt.url-select.underline: true
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
@chalist
chalist / .Xdefault
Created January 21, 2015 19:05
.Xdefault for urxvt
Rxvt*font: -*-clean-medium-r-*--12-*-*-*-*-*-*-*
Rxvt*font: xft:Inconsolata-12
@chalist
chalist / config
Created September 24, 2014 10:44
i3 config - 2014-09-24
set $mod Mod4
# font for window titles. ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
!! drop in Solarized colorscheme for Xresources
!!
!! ## Installation
!! 1- Write to $HOME/.Xresources
!! 2- If not using Xsession, you must add the line `xrdb -merge ~/.Xresources`
!! to `.xinitrc`. See http://manpages.ubuntu.com/Xsession for more details.
!!
!! SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
!! --------- ------- ---- ------- ----------- ---------- ----------- -----------
!! base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
@chalist
chalist / Tmux config
Last active October 25, 2018 12:39
tmux config with powerline
# use UTF8
set -g utf8
set-window-option -g utf8 on
set -g status on
set -g status-utf8 on
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)