Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Can someone revert Githubs new layout please?

Displee

💭
Can someone revert Githubs new layout please?
View GitHub Profile
@domnikl
domnikl / build.gradle.kts
Created Nov 14, 2018
Gradle Kotlin DSL: set main class attribute for jar
View build.gradle.kts
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "com.example.MainKt"
}
}
@michaelneu
michaelneu / Dockerfile
Last active Mar 27, 2021
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
View Dockerfile
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:5-fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli sysvsem
RUN pecl install xdebug-2.5.5 \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@ericandrewlewis
ericandrewlewis / index.md
Last active Apr 8, 2021
C++ Pointer Tutorial
View index.md

C++ Pointer Tutorial

Because pointers can be ugh

"Regular" variables (not pointers)

To understand a pointer, let's review "regular" variables first. If you're familiar with a programming language without pointers like JavaScript, this is what you think when you hear "variable".

When declaring a variable by identifier (or name), the variable is synonymous with its value.