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" | |
"os" | |
"os/signal" | |
"strings" | |
"sync" | |
"syscall" |
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
var gulp = require("gulp"); | |
var htmlmin = require("gulp-htmlmin"); | |
var concat = require("gulp-concat"); | |
var uglify = require("gulp-uglify"); | |
var cleanCSS = require("gulp-clean-css"); | |
gulp.task("minifyhtml", function(){ | |
return gulp.src("src/views/*.html") | |
.pipe(concat("bundle.html")) | |
.pipe(htmlmin({collapseWhitespace: true})) |
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" | |
func main() { | |
v := []float64{1,1,1,1} | |
fmt.Println(v+1) | |
} | |
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" | |
"math/rand" | |
"runtime" | |
"sync" | |
"time" | |
) |
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<iostream> | |
using namespace std; | |
class MyClass{ | |
public: | |
int getI(); | |
void setI(int i); | |
private: | |
int i; |
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
set number | |
set title | |
set ambiwidth=double | |
set tabstop=2 | |
set expandtab | |
set shiftwidth=2 | |
set hidden | |
set whichwrap=b,s,[,],<,> | |
set backspace=indent,eol,start | |
set nocompatible |
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 | |
CMD_NAME=`basename $0` | |
SPACE=`tput cols` | |
FILE_NAME= | |
if [ $# -ne 1 ]; then | |
echo "USAGE: $CMD_NAME file_name" | |
exit 1 | |
fi |
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/sh | |
CMDNAME=`basename $0` | |
CLASS= | |
if [ $# -ne 1 ]; then | |
echo "Usage: $CMDNAME <class-bunber>" | |
exit 1 | |
fi |
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/sh | |
CMDNAME=`basename $0` | |
CLASS= | |
PASS= | |
if [ $# -ne 2 ]; then | |
echo "Usage: $CMDNAME <Class-bunber> <password>" | |
exit 1 | |
fi |
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
import tweepy | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) | |
auth.set_access_token(OAUTH_TOKEN, OAUTH_SECRET) | |
api = tweepy.API(auth) | |
def follow(): | |
followers = api.followers_ids() | |
friends = api.friends_ids() |
NewerOlder