Skip to content

Instantly share code, notes, and snippets.

Reda Lemeden kaishin

Block or report user

Report or block kaishin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kaishin
kaishin / tabs.coffee
Last active Aug 29, 2015
Accordion Tabs
View tabs.coffee
ACTIVE_CLASS = 'js-is-active'
$tabs = $("[data-role='tab']")
$toggles = $tabs.find("[data-role='link']")
$toggles.on 'click', (event) ->
event.preventDefault()
$toggle = $(@)
$tab = $toggle.closest($tabs)
unless $tab.hasClass(ACTIVE_CLASS)
$tabs.removeClass(ACTIVE_CLASS)
@kaishin
kaishin / SassMeister-input-HTML.html
Created Jun 2, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class="container">
<section>Section 1</section>
<section>Section 2</section>
</div>
View selector-helpers.scss
@function attr-ends-with-string($attr, $string) {
@return "[#{$attr}$=#{$string}]";
}
@kaishin
kaishin / SassMeister-input.scss
Created Oct 27, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// Bourbon (v4.0.2)
// Neat (v1.6.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
@kaishin
kaishin / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// Bourbon (v4.0.2)
// Neat (v1.6.0)
// ----
@import "bourbon/bourbon";
$grid-columns: 6;
@import "neat/neat";
@kaishin
kaishin / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
@kaishin
kaishin / SassMeister-input-HTML.html
Created Nov 10, 2014
Generated by SassMeister.com.
@kaishin
kaishin / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View version-xcode-git.sh
GIT_RELEASE_VERSION=$(git describe --tags --always --abbrev=0)
COMMITS=$(git rev-list HEAD | wc -l)
COMMITS=$(($COMMITS+1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${COMMITS}" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${GIT_RELEASE_VERSION#*v}" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
@kaishin
kaishin / ffmpeg.sh
Created Feb 23, 2015
ffmpeg 2-pass encoding
View ffmpeg.sh
ffmpeg -i source.mp4 -pass 1 -codec:v libvpx -b:v 650k -codec:a libvorbis -b:a 100k -s 640x360 -f webm -y /dev/null
ffmpeg -i source.mp4 -pass 2 -codec:v libvpx -b:v 650k -codec:a libvorbis -b:a 100k -s 640x360 -y output.webm
You can’t perform that action at this time.