Skip to content

Instantly share code, notes, and snippets.

🍺
Cheers!

Jefersson Nathan malukenho

🍺
Cheers!
View GitHub Profile
View 📊 Weekly development breakdown
PHP 5 hrs 35 mins ███████████▉░░░░░░░░░ 56.9%
VimL 1 hr 26 mins ███░░░░░░░░░░░░░░░░░░ 14.6%
Markdown 57 mins ██░░░░░░░░░░░░░░░░░░░ 9.8%
JSON 47 mins █▋░░░░░░░░░░░░░░░░░░░ 8.1%
YAML 44 mins █▌░░░░░░░░░░░░░░░░░░░ 7.6%
View answer.txt
I think the best way to answer this definitively without just handwaving
and talking about the C preprocessor is to actually write two small
example programs and compare the generated code from both. When I was
first learning C I did this constantly trying to understand how the
compiler worked. You don't need to understand assembly in great detail
to be able to spot differences in the output:
$ cat a.c
int main() {
char *line = "HTTP/1.0 500 Internal Server Error";
@nnja
nnja / nina.zsh-theme
Last active Feb 23, 2017
My zshell prompt theme, a bastardization of robbyrussel & kolo themes
View nina.zsh-theme
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green}●'
zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
zstyle ':vcs_info:*' enable git svn
theme_precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
zstyle ':vcs_info:*' formats '%c%u%B%F{green} '
@danizord
danizord / AuthenticationListener.php
Last active Jan 1, 2016
Redirects unauthenticated users to login
View AuthenticationListener.php
<?php
namespace MyApp\Authentication;
use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManagerInterface;
use Zend\Mvc\MvcEvent;
use Zend\Stdlib\ResponseInterface;
/**
@Ocramius
Ocramius / .gitignore
Last active Jun 8, 2020
`Zend\EventManager` examples
View .gitignore
vendor
composer.lock
You can’t perform that action at this time.