Skip to content

Instantly share code, notes, and snippets.

View lloc's full-sized avatar
🏠
Working from home

Dennis Ploetner lloc

🏠
Working from home
View GitHub Profile
puts 'Merry Christmas'
#!/usr/bin/env bash
echo "Merry Christmas"
print "Merry Christmas\n";
#include <stdio.h>
int main()
{
printf("Merry Christmas\r\n");
return 0;
}
IDENTIFICATION DIVISION.
PROGRAM-ID. MERRY-CHRISTMAS.
PROCEDURE DIVISION.
DISPLAY "Merry Christmas".
STOP RUN.
PRINT "Merry Christmas"
print("Merry Christmas")
window.onload = function () {
console.log("Merry Christmas");
};
@lloc
lloc / merry-christmas.php
Last active December 7, 2017 17:50
Merry Christmas in PHP
<?php
echo "Merry Christmas\n";
@lloc
lloc / functions.php
Last active November 19, 2015 21:24
WordPress - How to show a nav menu_item only to users who are logged in
<?php
add_filter( 'wp_setup_nav_menu_item', function ( $menu_item ) {
if ( ! is_user_logged_in() &&
in_array( 'private', $menu_item->classes )
) {
$menu_item->_invalid = true;
}
return $menu_item;