Skip to content

Instantly share code, notes, and snippets.

@juhasz
juhasz / mocha-hook-hierarchy.js
Created March 17, 2015 14:49
Example for mocha hook hierarchy
'use strict';
var should = require('chai').should();
describe("A", function() {
before(function (done) {
console.log("-- 1 A.before");
done();
});
@juhasz
juhasz / drupalcon-my-gitlog
Created October 14, 2014 13:51
Drupal core commits I worked on DrupalCon Amsterdam
$git log —after=”2014 sept 26" | grep Désiré
Issue #2349263 by Désiré, zaporylie, hansfn: Fixed Add support for semantic version numbers in installer.
Issue #2346315 by Désiré, amateescu: Fixed Translated entity references not rendered in the entity display language.
Issue #2304403 by martin107, YesCT, Désiré: Convert language:weight into a protected property.
Issue #2347533 by Désiré: Added Display module machine names on the extend page.
Issue #1160764 by Désiré, Dave Reid, SebCorbin, agentrickard: Fixed URL alias load is inconsistent if there are more then one aliases.
Issue #2340571 by Désiré | YesCT: LanguageInterface needs isLocked method for the locked property.
Issue #2345607 by YesCT, Désiré | Gábor Hojtsy: Fixed Translated taxonomy terms not rendered in the entity display language.
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
## git autocomplete and promt
source /usr/local/git/contrib/completion/git-completion.bash
source /usr/local/git/contrib/completion/git-prompt.sh
## Add some directories to PATH
function setpath() {
export PATH=/usr/local/git/bin:~/.bin:$PATH
diff --git a/coder_sniffer/Drupal/Sniffs/Commenting/InlineCommentSniff.php b/coder_sniffer/Drupal/Sniffs/Commenting/InlineCommentSniff.php
index 61eb55b..030b239 100644
--- a/coder_sniffer/Drupal/Sniffs/Commenting/InlineCommentSniff.php
+++ b/coder_sniffer/Drupal/Sniffs/Commenting/InlineCommentSniff.php
@@ -106,7 +106,9 @@ class Drupal_Sniffs_Commenting_InlineCommentSniff implements PHP_CodeSniffer_Sni
}
// Only error once per comment.
- if (substr($tokens[$stackPtr]['content'], 0, 3) === '/**') {
+ $dockBlock = substr($tokens[$stackPtr]['content'], 0, 3) === '/**';
@juhasz
juhasz / gist:7f169b59825d588efb6c
Created July 4, 2014 10:36
Clean up jenkis log file in terminal
cat $FILEPATH | sed -e "s,ha:[^\x1B\[]*\x1B\[0m,,g" | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g"
; ujweb featuers
projects[ujweb_features][type] = profile
projects[ujweb_features][subdir] = ujweb/modules
projects[ujweb_features][download][type] = git
projects[ujweb_features][download][url] = [email protected]:ujweb/ujweb_features.git
@juhasz
juhasz / agile.md
Last active December 13, 2015 22:49

Agilitás kicsiknek

Ki? Honnan? Mit?

Juhász Márton
Integral Vision Kft.

Product owner

@juhasz
juhasz / .bash_profile
Created January 8, 2013 22:14
Git completion setup in .bash_profile. (Git installed from http://git-scm.com/)
## git autocomplete and promt
source /usr/local/git/contrib/completion/git-completion.bash
source /usr/local/git/contrib/completion/git-prompt.sh
@juhasz
juhasz / git-apply-remote
Created November 25, 2012 11:40
Downloads and apply patches with git apply
#!/bin/bash
# apply patch with a remote patch file
if ! [ "$1" = "" ]; then
filename=/tmp/`echo $1 | sed -e 's/^.*\///'`
wget --output-document=$filename $1
if [ "${0##*/}" = "git-apply-remote" ]; then
# use git apply
git apply -v $filename
desire:formolok [master]$ phpcs --standard=drupal formolok.module
FILE: /private/tmp/formolok/formolok.module
--------------------------------------------------------------------------------
FOUND 15 ERROR(S) AND 2 WARNING(S) AFFECTING 11 LINE(S)
--------------------------------------------------------------------------------
1 | ERROR | Missing file doc comment
4 | WARNING | Line exceeds 80 characters; contains 129 characters
4 | ERROR | Expected 1 space(s) before asterisk; 0 found
4 | ERROR | Function comment short description must start with a capital