View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"sync" | |
"time" | |
) |
View main_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"testing" | |
) | |
type bar struct { | |
} | |
func (b *bar) foo() {} |
View main.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef union { | |
char str[4]; | |
struct { | |
char c1; |
View bison_install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /tmp/bison | |
cd /tmp/bison | |
apt-get update | |
apt-get install -y build-essential m4 | |
wget http://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz | |
tar -xvf bison-2.7.tar.gz |
View bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Включаем автоподстановку | |
if [ -f ~/.scripts/git-completion.bash ]; then | |
. ~/.scripts/git-completion.bash | |
fi | |
# Включаем отображение состояния в строке приветствия bash | |
if [ -f ~/.scripts/git-prompt.sh ]; then | |
. ~/.scripts/git-prompt.sh | |
fi |