Skip to content

Instantly share code, notes, and snippets.

View j6s's full-sized avatar
✉️
hello@j6s.dev

Johannes Hertenstein j6s

✉️
hello@j6s.dev
View GitHub Profile
# decodes a QPSK ecoded message.
#
# agruments:
# - QPSK: The encoded message
# - f: the frequency to use (in Hz/bit)
# - bitlength: How many samples make up one bit?
#
# returns: original bit squence
#
function [signal] = QpskDecode (QPSK, f, bitlength)
@j6s
j6s / .bashrc
Created November 11, 2015 10:38
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
var connect = require('connect');
var serveStatic = require('serve-static');
var less = require('less-middleware');
var app = connect();
app.use(less(__dirname))
app.use(serveStatic(__dirname));
app.listen(8090);
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace nim=NIM\Nimelements\ViewHelpers}
<f:layout name="Content"/>
<f:section name="Configuration">
<flux:form
options="{group: 'zusätzliche Inhaltselemente', icon: '{f:uri.resource(path: \'icons/accordeon.png\')}', Fluidcontent: {sorting: 101}}"
id="accordeon" label="Accordeon">
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBMpVM8I5+wKm6oNuguTW9a7x80C2v1qf56a86u+PK0Zhq+McQrO0vgIksUqHxQdgEQYAClAyyUHHe8YogMgtIku3WKFcuGWg2U6rMMz63y6zrYF210RDt22tpOpDjkNd9vhH1b1LvVe2V3vUlWOlnPgExd5SW6xz9/YEbpODcL6b8KxJLlb+H0mG0WN7QgsTiKykLQEz1bJq16nvtL/r3EDyi9J39ZusRd8BUrXl4YZdkBCpKsGvbnunmktvh4lUNm31wsTKWxxJvWD/hhZbF1OSs0uxcoWtsVNMC/psU+to7oZPavLBmoOWJBiUNV0oZRe665yjpciFLNRnJIDhF Johannes Hertenstein
wget nutella-addict.com/mondial.zip
unzip mondial.zip
cd mondial
./install.sh
<?php
/**
* @param array $filter
* The inner arrays will be treated as AND and the outer as OR
* [
* [
* {
* type: string (min|max|equals|contains),
* field: string,
* val: string | float,
@j6s
j6s / Model.php
Last active August 29, 2015 14:09
<?php
/**
* file
*
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
*/
protected $file;
@j6s
j6s / typo3.rb
Last active August 29, 2015 14:08
set :typo3_maindir, '/html/typo3/'
set :php_cli, '/usr/local/bin/php_cli'
task :typo3_flushcache do
queue %[echo "------> TYPO3: flushing cache"];
queue %[cd #{typo3_maindir} && rm -R typo3temp/*];
queue %[
cd #{typo3_maindir} && #{php_cli} -r '
$GLOBALS["TYPO3_CONF_VARS"] = require(dirname(__FILE__)."/typo3conf/LocalConfiguration.php");
<?php
namespace Vendor\Ext\ViewHelpers\Form;
use Vendor\Ext\ViewHelpers\Misc\RequestViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3\CMS\Fluid\Core\ViewHelper\TagBuilder;
/***************************************************************
* Copyright notice
*
* (c) 2014 Johannes Hertenstein