Skip to content

Instantly share code, notes, and snippets.

View hapo31's full-sized avatar
🤪
狂気

happo31 hapo31

🤪
狂気
View GitHub Profile
#include<iostream>
int main()
{
std::cout << "hello world" << std::endl;
return 0;
}
読者の方々はC++という言語をご存知だろうか。C言語を学習していく中で、一度ぐらいは耳にしたことがあるはずだ。
C++は名前の通りC言語に様々な機能を追加した言語である。
故に、C言語で覚えた知識はC++でも使うことが出来、C言語を学習し終わった者が次に手を出しやすい言語といえるであろう。
とは言えC++を使う以上、新しく増えた機能を使わなければ宝の持ち腐れである。ここではC言語の次にC++を学ぼうと思っている人、
もしくは、C言語をひと通り学び終わり次に何を勉強すればいいのか分からない人へC++をオススメするという名目で、
軽く言語機能を紹介しようと思う。
@hapo31
hapo31 / jrtpdriver.cpp
Created October 23, 2015 20:13
JRTPLIB Run Test
#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>
# -*- coding: utf-8 -*-
import re
import datetime
import tweepy
#自分で作って
import config
class MyStreamListener(tweepy.StreamListener):
# -*- coding: utf-8 -*-
import re
import datetime
import tweepy
# from tweepy.streaming import StreamListener
# from tweepy import OAuthHandler
# from tweepy import Stream
#include <string>
#include <fstream>
#include <iostream>
#include <chrono>
#include <vector>
#include <boost/algorithm/string.hpp>
using namespace std;
using namespace std::chrono;
/**
* コメント書くの力尽きたので適当にC++版のと見比べてください♨
* https://gist.github.com/happou31/bd87cc83b4d57d3ad233c257f6d423e3
*/
import java.io.*;
import java.util.*;
import java.nio.file.*;
import java.nio.charset.Charset;
// エラーチェックはしてないのでいじめないで
// 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"]
# -*- coding: utf-8 -*-
consumer_key = "YOUR APP CONSUMER KEY"
consumer_secret = "YOUR APP COUSUMER SECRET"
import tweepy
import sys
import urllib3
def main():
#!/bin/python3
# -*- coding: utf-8 -*-
import re
import tweepy
consumer_key = ""
consumer_secret = ""
access_token = ""
access_token_secret = ""