Skip to content

Instantly share code, notes, and snippets.

View vucalur's full-sized avatar

vucalur

  • Kraków, Poland
View GitHub Profile
from calibre.web.feeds.recipes import BasicNewsRecipe
class JavaTutorialsRecipe(BasicNewsRecipe):
title = 'Java Tutorials. Trail: Essential Classes - Concurrency'
description = ''
cover_url = 'https://docs.oracle.com/javase/tutorial/images/oracle-java-logo.png'
url_prefix = 'https://docs.oracle.com/javase/tutorial/essential/'
no_stylesheets = True
@vucalur
vucalur / paste_to_some_controller
Created June 28, 2014 08:02
UI-Router debugging snippet for CoffeeScript
$rootScope = @$scope.$root
$rootScope.$on('$stateChangeStart', (event, toState, toParams, fromState, fromParams) ->
console.log('$stateChangeStart to ' + toState.to + '- fired when the transition begins. toState,toParams : \n', toState, toParams);
console.log(arguments)
)
$rootScope.$on('$stateChangeError', (event, toState, toParams, fromState, fromParams) ->
console.log('$stateChangeError - fired when an error occurs during transition')
console.log(arguments)
@vucalur
vucalur / app myDirective.js
Last active September 22, 2016 20:59
Yeoman - AngularJS : karma configuration for directives testing
// file: app/scripts/directives/myDirective.js
angular.module('someApp.directive').directive('myDirective', function () {
return {
templateUrl: 'templates/myDirective.html', // HERE
....
}
});
@vucalur
vucalur / .abcde.conf
Created June 8, 2012 08:20
basic system settings (for Ubuntu)
# User defaults for abcde version 2.2.x
# Entire description of these options: /etc/abcde.conf, or shell command: "man abcde"
OUTPUTTYPE="flac,mp3"
#########
FLACENCODERSYNTAX=flac
MP3ENCODERSYNTAX=lame
FLAC=flac
LAME=lame
FLACOPTS='--verify --best'
LAMEOPTS='--preset insane'
@vucalur
vucalur / .bashrc
Created June 8, 2012 08:14
my git settings, based on ralfebert's ones
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\] $(__git_ps1 "(%s)")\[\033[00m\]$ '
alias d='git diff --word-diff $@'
alias s='d; echo -e "\n"; git status -sb'
alias st='d; echo -e "\n"; git status -b'
alias b='git branch -avv'
alias pl='git pull -v'
alias ph='git push -v'
alias a='git add $@'
alias c='git commit -v $@'