Skip to content

Instantly share code, notes, and snippets.


Jefersson Nathan malukenho

View GitHub Profile
View 📊 Weekly development breakdown
PHP 59 mins ████████▏░░░░░░░░░░░░ 38.9%
VimL 44 mins ██████░░░░░░░░░░░░░░░ 29.2%
Markdown 11 mins █▋░░░░░░░░░░░░░░░░░░░ 7.8%
Other 11 mins █▌░░░░░░░░░░░░░░░░░░░ 7.7%
XML 9 mins █▎░░░░░░░░░░░░░░░░░░░ 6.3%
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 / 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 / AuthenticationListener.php
Last active Jan 1, 2016
Redirects unauthenticated users to login
View AuthenticationListener.php
namespace MyApp\Authentication;
use Zend\EventManager\AbstractListenerAggregate;
use Zend\EventManager\EventManagerInterface;
use Zend\Mvc\MvcEvent;
use Zend\Stdlib\ResponseInterface;
Ocramius / .gitignore
Last active Jun 8, 2020
`Zend\EventManager` examples
View .gitignore