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
#!/usr/bin/ruby | |
require 'net/imap' | |
require 'oauth2' | |
IMAP_SERV = 'imap.gmail.com' | |
IMAP_PORT = 993 | |
IMAP_SSL = true | |
folder = ARGV[0] || 'INBOX' | |
user = 'GMailアドレス' | |
pass = "XOAuth2 Refresh Token" |
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
#!/usr/bin/python | |
# | |
# Copyright 2012 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
import requests | |
def getTwitterFollowers(username): | |
res = requests.options('https://api.twitter.com/1.1/guest/activate.json', | |
headers={ | |
'access-control-request-method': 'POST', | |
'origin': 'https://twitter.com', | |
'user-agent':'Mozilla/5.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
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------< org.apache.maven:standalone-pom >------------------- | |
[INFO] Building Maven Stub Project (No POM) 1 | |
[INFO] --------------------------------[ pom ]--------------------------------- | |
[INFO] | |
[INFO] >>> maven-archetype-plugin:3.2.0:generate (default-cli) > generate-sources @ standalone-pom >>> | |
[INFO] | |
[INFO] <<< maven-archetype-plugin:3.2.0:generate (default-cli) < generate-sources @ standalone-pom <<< | |
[INFO] |
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 <windows.h> | |
#include <WinInet.h> | |
#include "_ininet.h" | |
#define HINTERNET void* | |
EXTERN_C HINTERNET STDAPICALLTYPE d_HttpOpenRequestA( | |
__in HINTERNET hConnect, | |
__in_opt LPCSTR lpszVerb, |
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
#!/usr/bin/python | |
import json | |
import os | |
import sys | |
import pprint | |
import io | |
import requests | |
gyazo_token = 'GYAZO_TOKEN' |
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
#!/usr/bin/python3 | |
import RPi.GPIO as GPIO | |
def main() -> None: | |
tmp = get_cpu_temp() | |
print("CPU temp:{0}".format(tmp)) | |
if(tmp > 60): | |
fan_control(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
#!/usr/local/bin/node | |
const http = require('http'); | |
const vm = require('vm'); | |
const fs = require('fs'); | |
const util=require('util'); | |
const url = 'http://sx9.jp/weather/tokyo-komaba.js'; | |
const dst = '/dev/shm/ninetan/'; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use IO::Socket::Multicast; | |
use Net::DNS::Packet; | |
my $target = '224.0.0.251'; | |
my $port = 5353; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
using System.Net; | |
using System.IO; | |
using System.Threading; | |
namespace KCB2 |