Skip to content

Instantly share code, notes, and snippets.

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

Maysam Torabi maysam

🏠
Working from home
View GitHub Profile
@maysam
maysam / parallax-mixin.js
Created June 26, 2016 20:16 — forked from YoussefKababe/parallax-mixin.js
A RiotJS mixin that adds parallax effect to any tag with a background-image property
import kefir from 'kefir'
const parallaxMixin = {
init: function() {
let ratio = this.opts.parallaxRatio || 1
this.on('mount', () => {
this.updateBGPosition(ratio)
let scrolls = kefir.fromEvents(window, 'scroll')
@maysam
maysam / proxy.sh
Created June 23, 2014 16:29 — forked from weilu/proxy.sh
# on
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 1080
ssh -D 1080 -i ~/.ssh/proxy.pem [remote-user]@[remote-server]
# off
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off