Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Handlebars.registerHelper 'each_with_index', (array, fn) -> | |
buffer = '' | |
for i in array | |
item = i | |
item.index = _i | |
buffer += fn(item) | |
buffer |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "..\h\parser.h" | |
/* Variáveis para controlar a analise da expressão */ | |
char *prog; /* contém a expressão a ser analisada */ | |
char token[80]; | |
char tok_type; |
/* Escreve alguns dados não-caracteres em um arquivo em disco | |
* e lê de volta. */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
main(void) { | |
FILE *fp; | |
double d = 12.23; | |
int i = 101; | |
long l = 123023L; |
/* Verificação dupla antes de apagar. */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
int main(int argc, char const *argv[]) { | |
char str[80]; | |
if (argc != 2) { | |
printf("uso: xerase <nomearq>\n"); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
main(int argc, char const *argv[]) { | |
char str[80]; | |
FILE *fp; | |
if ((fp = fopen("TESTE", "w+")) == NULL) { | |
printf("O arquivo não pode ser aberto.\n"); |
/* Copia um arquivo */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
main(int argc, char const *argv[]) { | |
FILE *in, *out; | |
char ch; | |
if (argc != 3) { | |
printf("Você esqueceu de digitar o nome do arquivo.\n"); |
/* DTOS: Um programa que lê arquivos e mostra-os na tela */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
main(int argc, char const *argv[]) { | |
FILE *fp; | |
char ch; | |
if (argc != 2) { | |
printf("Você esqueceu de digitar o nome do arquivo.\n"); |
/* KTDO: Do teclado para o disco. */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
main(int argc, char const *argv[]) { | |
FILE *fp; | |
char ch; | |
if (argc != 2) { | |
printf("Você esqueceu de digitar o nome do arquivo.\n"); |
/* Um dicionário simples. */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
/* lista de palavras e significados */ | |
char *dic[][40] = { | |
"atlas", "um livro de mapas", | |
"carro", "um veículo motorizado", | |
"telefone", "um dispositivo de comunicação", |