Skip to content

Instantly share code, notes, and snippets.

View Temaruk's full-sized avatar

Gergely Tamás Kurucz Temaruk

  • Chemaxon
  • Budapest, Hungary
View GitHub Profile
#include <cstring>
#include <iostream>
using namespace std;
// globalis valtozok, igy egyszerubb
int azononsito[100];
string nev[100];
bool nem[100];
int kor[100];
@Temaruk
Temaruk / gist:2a20acbdab6b72f79a21
Created November 18, 2015 01:17
Chimp path option error
# gergely at Prime-Radiant.local in ~/Work/Indivizo/lens on git:master x [2:12:01]
$ ./node_modules/.bin/chimp --watch --path=./test/features
[chimp] Watching features with tagged with @dev,@watch,@focus
[chimp] Running...
/Users/gergely/Work/Indivizo/lens/node_modules/chimp/lib/cucumberjs/cucumber-wrapper.js:29
throw(e);
^
Error: ENOENT: no such file or directory, lstat '/Users/gergely/Work/Indivizo/lens/features'
at Error (native)
@Temaruk
Temaruk / vhost_alias.apacheconf
Last active August 29, 2015 14:02
Apache mass vhost template.
<VirtualHost *:80>
ServerAdmin fake@mail.com
ServerName example.dev
ServerAlias *.dev
DocumentRoot /var/www/mamp
VirtualDocumentRoot /var/www/mamp/%1/
UseCanonicalName Off
@Temaruk
Temaruk / markElementsHavingColor.jQuery.js
Created July 26, 2013 14:25
Visually mark DOM elements that have the specified background-color. Using jQuery. The cssHook (http://api.jquery.com/jQuery.cssHooks/) must be available for the filter to work.
jQuery('*').filter(function(){
return jQuery(this).css("background-color").toLowerCase() === "#ff6600";
}).css('border', '5px solid red');
drush sql-drop -y; drush sqlc < sql_dump.mysql; drush sqlq 'update users set mail = concat("user", rand(), "@example.com"), pass = "" where uid > 1;'; drush cc all; drush updb -y; drush fra --force -y; drush cc all;
CMake Error at source/creator/cmake_install.cmake:120 (FILE):
file cannot create directory:
/Users/gergely/Work/Personal/svn/blender-svn/cmake/bin/Debug/blender.app/Contents/MacOS/2.67/scripts/addons/cycles.
Maybe need administrative privileges.
CMake Warning at CMakeLists.txt:2112 (message):
'numpy' path could not be found in:
'/Users/gergely/Work/Personal/svn/blender-svn/blender/../lib/darwin-9.x.universal/python/lib/python3.3/python3.3/site-packages/numpy',
'/Users/gergely/Work/Personal/svn/blender-svn/blender/../lib/darwin-9.x.universal/python/lib/python3.3/python3/site-packages/numpy',
'/Users/gergely/Work/Personal/svn/blender-svn/blender/../lib/darwin-9.x.universal/python/lib/python3.3/python3.3/dist-packages/numpy',
'/Users/gergely/Work/Personal/svn/blender-svn/blender/../lib/darwin-9.x.universal/python/lib/python3.3/python3/dist-packages/numpy',
WITH_PYTHON_INSTALL_NUMPY option will be ignored when installing python
@Temaruk
Temaruk / gist:5884209
Created June 28, 2013 12:03
Determines if the current page call is via Services. (Drupal 6)
<?php
/**
* Determines if the current page call is via Services.
*
* @return bool
* TRUE if request is via Services, FALSE otherwise.
*/
function _determine_if_call_via_services() {
$args = arg();
@Temaruk
Temaruk / gist:5224208
Created March 22, 2013 19:49
jQuery UI Sortable, delete dragged item by dragging out.
$('.selector').sortable({
receive: function (event, ui) {
ui.item.data('removeIntent', false);
},
over: function (event, ui) {
ui.item.data('removeIntent', false);
},
out: function (event, ui) {
ui.item.data('removeIntent', true);
},