Skip to content

Instantly share code, notes, and snippets.

@Arahort
Arahort / .gitconfig
Created January 27, 2023 08:11 — forked from jvandyke/.gitconfig
Use PHPStorm/WebStorm for git diff and merge tools
# ~/.gitconfig
# Add this to your global git configuration file
# Change phpstorm to webstorm, if you use that.
# Diff and merge tool changes
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = phpstorm
[diff]
tool = phpstorm
@Arahort
Arahort / .gitconfig
Created January 27, 2023 08:11 — forked from jmlane/.gitconfig
Git config for PHP/WebStorm as diff and merge tool on Windows. See http://www.jetbrains.com/webstorm/webhelp/running-webstorm-as-a-diff-or-merge-command-line-tool.html for information on using the diff/merge functionality in the IDE on the command line.
# ~/.gitconfig
# Add this to your global git configuration file
# Change webstorm to phpstorm, if you use that.
# Diff and merge tool changes
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = phpstorm
[diff]
tool = phpstorm
@Arahort
Arahort / main.js
Created November 2, 2021 15:21 — forked from RoseCrime/main.js
Stuff I keep using over and over again
//Logging
const log = val => console.log(val),
error = message => console.error(message),
type = val => log(typeof val)
//Math
let random = (min, max) => Math.random() * (max - min + 1) + min,
floor = val => Math.floor(val),
abs = val => Math.abs(val)
<!DOCTYPE HTML>
<html prefix="og: http://ogp.me/ns#">
<head>
<title>[[*title]]</title>
<meta charset="utf-8" />
<base href="[[++site_url]]" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="[[*description]]" />
<meta name="keywords" content="[[*keywords]]" />
@Arahort
Arahort / gist:7f67df2203fb1b71afd885655e144b58
Created August 24, 2018 11:54 — forked from Mikodes/gist:be9b9ce42e46c3d4ccb6
All Media queries for resolutions
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@Arahort
Arahort / install
Created May 22, 2018 07:01 — forked from agragregra/install
Fast Install Node.js, Gulp & Jekyll into Windows 10/Ubuntu/Mint
sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl ruby2.5 ruby2.5-dev gcc make g++ libffi-dev; curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo gem i jekyll -v 3.7.2; sudo gem i jekyll-paginate-v2; sudo npm i -g gulp rimraf npm-check-updates; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config
@Arahort
Arahort / owl-equal-heights.js
Created May 3, 2018 09:54 — forked from agragregra/owl-equal-heights.js
Owl Carousel Equal Heights
onRefresh: function () {
owl.find('div.owl-item').height('');
},
onRefreshed: function () {
owl.find('div.owl-item').height(owl.height());
}