// jQuery
$(document).ready(function() {
// code
})
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
| sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass |
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
| // Get the Spotify.Core instance | |
| var spotify = Spotify.Instances.get(/(SPFBIn_\d+)_player/.exec(document.querySelector('[id^="SPFBIn"]').id)[1]); | |
| // Request the 160kbps MP3 url for a specific track | |
| spotify.services.storageResolver.list('spotify:track:0M3adYbGtyRHACP86dey1H', '', function(data) { console.log('Opening MP3 in new window:', a.uri); window.open(a.uri); }, function(e){ console.log('Error:', e); }); |
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
| const Reducer = { | |
| factory: (actions, initState, beans) => (state = initState, action) => { | |
| if (!(actions.has(action.type))) return state; | |
| return actions.get(action.type)(state, action, beans); | |
| } | |
| }; | |
| export default Reducer; |
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
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools | |
| # install all sdk packages |
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 | |
| sudo apt-get install gcc build-essential libwxbase3.0-dev libwxgtk3.0-dev | |
| tar zxf winusb_1.0.11+vivid1.tar.gz | |
| cd src-dir/src | |
| sed -i -- 's#wxStandardPaths().GetInstallPrefix()#wxStandardPaths::Get().GetInstallPrefix()#g' findFile.cpp | |
| sed -i -- 's#wxStandardPaths().GetDataDir()#wxStandardPaths::Get().GetDataDir()#g' findFile.cpp | |
| cd .. | |
| autoreconf --install | |
| ./configure |
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
| /* | |
| * Standard AngularjS bootstrap code. | |
| */ | |
| var app = angular.module('remote-partials-views', | |
| ['ui.router', | |
| 'ngResource', | |
| 'ngSanitize']); | |
| /* | |
| * AngularJS is good enough to come with a whitelist for resource URLs. It just |
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
| @mixin center($width, $height) { | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| height: $height; | |
| width: $width; | |
| margin-left: - $width / 2; | |
| margin-top: - $height / 2; | |
| } |
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 | |
| CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
| COMMIT_MESSAGE=$1 | |
| echo -e "$(tput setaf 2)** Executing Status command$(tput sgr0)" | |
| git status | |
| echo -e "\n$(tput setaf 2)\n** Executing add command$(tput sgr0)" | |
| git add . |
To remove the entire directory from the index,
git rm --cached -r dir