Skip to content

Instantly share code, notes, and snippets.

View christophrumpel's full-sized avatar
🤠
PHP/Laravel Developer and Author

Christoph Rumpel christophrumpel

🤠
PHP/Laravel Developer and Author
View GitHub Profile
@christophrumpel
christophrumpel / snippet.txt
Created March 8, 2012 22:10
HTML5: Starter Plain
<!DOCTYPE html>
<html lang-"en">
<head>
<meta charset="utf-8">
<title>untitled</title>
</head>
<body>
</div>
@christophrumpel
christophrumpel / keep_elements_in_view.js
Created August 22, 2012 09:41
js: elements stay in window vie
//keep element in view
(function($)
{
$(document).ready( function()
{
var elementPosTop = $('#sidebar-ads').position().top;
$(window).scroll(function()
{
var wintop = $(window).scrollTop(), docheight = $(document).height(), winheight = $(window).height();
//if top of element is in view
sudo curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
######################################################################## 100,0%
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 226 0 --:--:-- --:--:-- --:--:-- 302
100 3261k 100 3261k 0 0 622k 0 0:00:05 0:00:05 --:--:-- 879k
curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
######################################################################## 100,0%
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 139 0 --:--:-- --:--:-- --:--:-- 287
100 3261k 100 3261k 0 0 128k 0 0:00:25 0:00:25 --:--:-- 315k
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="prose"
# Example aliases
christophrumpel1 in ~
○ curl -#L https://get.rvm.io | bash
######################################################################## 100,0%
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 218 0 --:--:-- --:--:-- --:--:-- 278
100 3264k 100 3264k 0 0 228k 0 0:00:14 0:00:14 --:--:-- 326k
Upgrading the RVM installation in /christophrumpel1.rvm/
curl -#L https://get.rvm.io | bash
######################################################################## 100,0%
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 139 0 --:--:-- --:--:-- --:--:-- 286
100 3265k 100 3265k 0 0 159k 0 0:00:20 0:00:20 --:--:-- 650k
Upgrading the RVM installation in /christophrumpel1.rvm/
RVM PATH line found in /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh /Volumes/Macintosh.
PAGER=cat rvm --trace notes
+__rvm_parse_args:686> [[ -n 4.3.11 ]]
+__rvm_parse_args:721> [[ -z '' && -n '' ]]
+__rvm_parse_args:724> [[ error == || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n notes ]]
+__rvm_parse_args:18> rvm_token=notes
+__rvm_parse_args:20> (( 0 > 0 ))
+__rvm_parse_args:25> next_token=''
+__rvm_parse_args:28> case notes ([[:alnum:]]*|@*)
+__rvm_parse_args:31> case notes (use)
@christophrumpel
christophrumpel / gist:8397321
Created January 13, 2014 09:49
Laravel eager loading problem
// This is working
$fanpages = Fanpage::all();
// Loop through fanpages
foreach($fanpages as $fanpage) {
// Check if there are entries for yesterday (data date)
echo $fanpage->name;
return $fanpage->fanpageActivities()->get();
}
@christophrumpel
christophrumpel / debug_data.php
Last active February 23, 2016 10:03
CRM Create user data
array(8) {
["firstname"]=> string(14) "Test Christoph"
["lastname"]=> string(9) "Test Test"
["leadProcess"]=> int(552)
["leadStatus"]=> int(555)
["emails"]=> array(1) {
[0]=> array(2) {
["email"]=> string(25) "c.rumpel@liechtenecker.at"
["addressType"]=> int(1)
}