Skip to content

Instantly share code, notes, and snippets.

@ytera
ytera / twitteroath_test.html
Created November 16, 2015 08:55
twitteroathとphpを使って自分のタイムラインを表示するプログラム
<!-- phpで準備 -->
<?php
require_once("twitteroauth/autoload.php");
use Abraham\TwitterOAuth\TwitterOAuth;
function h($str, $double = true){
return htmlspecialchars($str, ENT_QUOTES, 'UTF-8', $double);
}
@ytera
ytera / readernum.rb
Last active September 15, 2015 02:22
読書メーターに登録されている本の読者数を取得するスクリプト
# -*- encoding: utf-8 -*-
require 'mechanize'
require 'nokogiri'
require 'kconv'
require 'fileutils'
# ハッシュ
module HashInitializable
def initialize(attributes={})
attributes.each do |name,value|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int agrc, char *argv[]){
FILE *fp;
int i=0,j,c,num_sp,head=1,num=0,ptr=0,flag_c=0,flag_of=0,flag_p=0,all=0;
char word[128], C_word[128];