Skip to content

Instantly share code, notes, and snippets.

View pelim's full-sized avatar
😺
katzig

Peter Limbach pelim

😺
katzig
View GitHub Profile
@pelim
pelim / apex-upload
Last active June 26, 2018 09:50
apex upload
@RestResource(urlMapping='/requests/*')
global class ECP_Request_Controller extends ECP_Base_Controller {
@HttpPost
global static void createActionPoc(Map<String,String> data, Map<String, String> attachment1, Map<String, String> attachment2, Map<String, String> attachment3, Map<String, String> attachment4) {
RestRequest request = RestContext.request;
RestResponse response = RestContext.response;
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<style TYPE='text/css'>
.highlighter .add {
background-color: #7fff7f;
}
.highlighter .remove {
@pelim
pelim / rn-inject
Last active August 31, 2017 20:05
console.log(this)

Keybase proof

I hereby claim:

  • I am pelim on github.
  • I am pelim (https://keybase.io/pelim) on keybase.
  • I have a public key ASDtusmRxqtkkph5SvWLQ09Pmea4DRr3zbdvqhVU6cNrUwo

To claim this, I am signing this object:

@pelim
pelim / RestRequest.php
Created October 7, 2016 15:30
Agavi Rest Request
<?php
namespace App\Agavi\Request;
use AgaviWebRequest;
use AgaviContext;
class RestRequest extends AgaviWebRequest {
public function initialize(AgaviContext $context, array $parameters = array()) {
parent::initialize($context, $parameters);

Keybase proof

I hereby claim:

  • I am pelim on github.
  • I am pelim (https://keybase.io/pelim) on keybase.
  • I have a public key whose fingerprint is 1E32 72C3 EEA1 D227 DC72 4258 448C C5E4 C494 6D19

To claim this, I am signing this object:

[warn] There may be incompatibilities among your library dependencies.
[warn] Here are some of the libraries that were evicted:
[warn] * com.fasterxml.jackson.module:jackson-module-scala_2.10:2.2.2 -> 2.4.4
[warn] Run 'evicted' to see detailed eviction warnings
[info] Compiling 1 Scala source to /home/peter.limbach/docker-druid-cluster/random-tranquility/target/scala-2.10/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.10.4. Compiling...
[info] Compilation completed in 16.183 s
[info] Running com.banno.Main
[error] (run-main-0) java.lang.UnsupportedClassVersionError: io/druid/query/aggregation/AggregatorFactory : Unsupported major.minor version 51.0
java.lang.UnsupportedClassVersionError: io/druid/query/aggregation/AggregatorFactory : Unsupported major.minor version 51.0
public function all()
{
return array_replace_recursive($this->input(), $this->files->all(), $this->route()->parameters());
}
@pelim
pelim / gist:4a6b86fddaf320efc34c
Last active August 29, 2015 14:24
ng-server-validate
this.save = function(form){
if(form.$valid) {
this.model.$save().then(function(data) {
console.log(data);
}, function(response) {
angular.forEach(response.data, function(error, field) {
form[field].$setValidity('server', false);
self.errors[field] = error[0];
});
@pelim
pelim / combined unicode facebook
Last active December 19, 2015 10:09
combined unicode facebook status message
*̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋ *̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋̋
This is a awesome combine unicode status message
with nice effects on the facebook timeline
https://gist.github.com/pelim/5938487
*͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈͈ *͈