Skip to content

Instantly share code, notes, and snippets.

Avatar
🐈
~=[,,_,,]:3

Jeroen De Dauw JeroenDeDauw

🐈
~=[,,_,,]:3
View GitHub Profile
@MrSwed
MrSwed / git-hooks.sh
Last active April 8, 2022 20:05
Enable or Disable git hooks
View git-hooks.sh
#!/usr/bin/env bash
# Enable or disable git hooks
#find .git/hooks/ -type f ! -name "*.*"
gitHooks=.git/hooks/
echo "git Hooks $gitHooks"
option="${1}"
View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@ralfw
ralfw / Dockerfile
Created August 18, 2016 06:31
Roll your own Elm Docker container
View Dockerfile
# Build image with Node.js, Elm and Nginx
FROM debian:latest
# prepare
RUN apt-get -y update
RUN apt-get -y install apt-utils
# install curl, http://stackoverflow.com/questions/27273412/cannot-install-packages-inside-docker-ubuntu-image
RUN apt-get -y install curl
@m1st0
m1st0 / php_build_ubuntu.sh
Last active May 30, 2022 09:25
Compiling PHP 7 on Ubuntu 15.04 with Various Supported Modules
View php_build_ubuntu.sh
#!/bin/bash
# PHP 8 Initial Compile #
# Author: Maulik Mistry
# References:
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
#
# License: BSD License 2.0
# Copyright (c) 2015-2021, Maulik Mistry
@tronsha
tronsha / installphp7.sh
Last active October 8, 2021 20:23
Install PHP7 to Ubuntu
View installphp7.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
apt-get update
apt-get install -y git-core autoconf bison libxml2-dev libbz2-dev libmcrypt-dev libcurl4-openssl-dev libltdl-dev libpng-dev libpspell-dev libreadline-dev make
mkdir -p /etc/php7/conf.d
mkdir -p /etc/php7/cli/conf.d
mkdir /usr/local/php7
@staltz
staltz / introrx.md
Last active March 29, 2023 08:33
The introduction to Reactive Programming you've been missing
View introrx.md
@Ocramius
Ocramius / .gitignore
Last active January 10, 2023 16:34
`Zend\EventManager` examples
View .gitignore
vendor
composer.lock
@mtyeh411
mtyeh411 / Widget:DataTables_Form
Created August 27, 2012 02:00
SMW_DataTables & SPS_PageIterator MW Widget
View Widget:DataTables_Form
<noinclude>
This [http://www.mediawiki.org/wiki/Extension:Widgets widget] is meant to be used with an instance of [http://www.datatables.net DataTables jQuery plugin] on the page and a form link created from the [http://www.mediawiki.org/wiki/Extension:Semantic_Page_Series Semantic Page Series] <nowiki>{{#serieslink:}}</nowiki> parser function to a page iterator. The [https://github.com/mtyeh411/semantic_mediawiki-datatables Semantic MediaWiki DataTables result format] can be used as a DataTables instance.
This widget adds multiple selection highlighting on the DataTable instance. The values of the selected DataTable rows are used as inputs to the Semantic Page Series pagenames value for the Semantic Page Series page iterator.
Just add the following anywhere on the page where you have a DataTable and a SPS link
<pre>
{{#widget: DataTables Form | pagenames=<SPS page iterator pagenames value>}}
</pre>
</noinclude>