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> | |
int main() | |
{ | |
std::cout << "hello world" << std::endl; | |
return 0; | |
} |
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
読者の方々はC++という言語をご存知だろうか。C言語を学習していく中で、一度ぐらいは耳にしたことがあるはずだ。 | |
C++は名前の通りC言語に様々な機能を追加した言語である。 | |
故に、C言語で覚えた知識はC++でも使うことが出来、C言語を学習し終わった者が次に手を出しやすい言語といえるであろう。 | |
とは言えC++を使う以上、新しく増えた機能を使わなければ宝の持ち腐れである。ここではC言語の次にC++を学ぼうと思っている人、 | |
もしくは、C言語をひと通り学び終わり次に何を勉強すればいいのか分からない人へ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 "rtpsession.h" | |
#include "rtppacket.h" | |
#include "rtpudpv4transmitter.h" | |
#include "rtpipv4address.h" | |
#include "rtpsessionparams.h" | |
#include "rtperrors.h" | |
#include "rtpmemorymanager.h" | |
#ifndef WIN32 | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
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
# -*- coding: utf-8 -*- | |
import re | |
import datetime | |
import tweepy | |
#自分で作って | |
import config | |
class MyStreamListener(tweepy.StreamListener): |
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
# -*- coding: utf-8 -*- | |
import re | |
import datetime | |
import tweepy | |
# from tweepy.streaming import StreamListener | |
# from tweepy import OAuthHandler | |
# from tweepy import Stream | |
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 <string> | |
#include <fstream> | |
#include <iostream> | |
#include <chrono> | |
#include <vector> | |
#include <boost/algorithm/string.hpp> | |
using namespace std; | |
using namespace std::chrono; |
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
/** | |
* コメント書くの力尽きたので適当にC++版のと見比べてください♨ | |
* https://gist.github.com/happou31/bd87cc83b4d57d3ad233c257f6d423e3 | |
*/ | |
import java.io.*; | |
import java.util.*; | |
import java.nio.file.*; | |
import java.nio.charset.Charset; |
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
// エラーチェックはしてないのでいじめないで | |
// http://www.groovy-lang.org/ | |
import java.util.Calendar; | |
import java.text.SimpleDateFormat; | |
if(args.length <= 0) { | |
println("Usase:") | |
println("\tgroovy cal.groovy [YYYY-mm]") | |
return | |
} | |
def days = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"] |
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
# -*- coding: utf-8 -*- | |
consumer_key = "YOUR APP CONSUMER KEY" | |
consumer_secret = "YOUR APP COUSUMER SECRET" | |
import tweepy | |
import sys | |
import urllib3 | |
def main(): |
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/python3 | |
# -*- coding: utf-8 -*- | |
import re | |
import tweepy | |
consumer_key = "" | |
consumer_secret = "" | |
access_token = "" | |
access_token_secret = "" |
OlderNewer