Skip to content

Instantly share code, notes, and snippets.

View sakakendo's full-sized avatar
🌴
On vacation

sakakendo

🌴
On vacation
View GitHub Profile
@sakakendo
sakakendo / WTFPL.md
Last active August 5, 2018 11:33
my wtfpl template
          DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                  Version 2, August 2018

Copyright (C) 2018 sakakendo <sakakendo0321@gmail.com>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

#include <3694.h>
int main (void){
/*初期化*/
//IO.PMR5.BYTE&=0xe7;
IO.PCR8|=0xff;
/*値の設定*/
IO.PDR8.BYTE|=0x40;
IO.PDR8.BYTE&=0xff;
@sakakendo
sakakendo / checkbox.md
Created June 17, 2018 23:59
test markdown checkbox
  • Foo
  • Bar
  • Baz
@sakakendo
sakakendo / bot.py
Created June 3, 2018 10:03
wikipedia bot
from apscheduler.schedulers.background import BackgroundScheduler
#from apscheduler.schedulers.blocking import BlockingScheduler
from xml.dom import minidom
import os,time,logging,re,datetime,requests,json,random
from bs4 import BeautifulSoup
from slackclient import SlackClient
from pytz import utc
import wikipedia
logging.basicConfig(filename='info.log',level=logging.INFO)
const puppeteer = require("puppeteer");
const request = require("request");
const fs = require("fs");
const jsdom=require('jsdom');
const {RTMClient}=require('@slack/client');
const rtm=new RTMClient(process.env.SLACK_TOKEN);
rtm.start();
var slack_id;
@sakakendo
sakakendo / main.py
Created May 14, 2018 13:07
collect hashtagged pictures
!pip3 install requests_oauthlib
from requests_oauthlib import OAuth1Session
from IPython.display import Image,display_jpeg
import json,requests
CK=''
CS=''
AT=''
AS=''
twitter=OAuth1Session(CK,CS,AT,AS)
>>> sche2018-05-14 14:02:00.002022every min2018-05-14 14:02:00.003023
sche2018-05-14 14:03:00.003838every min2018-05-14 14:03:00.005838
sche2018-05-14 14:04:00.007090every min2018-05-14 14:04:00.008587
sche2018-05-14 14:05:00.004284every min2018-05-14 14:05:00.005785
sche2018-05-14 14:06:00.004524every min2018-05-14 14:06:00.006040
@sakakendo
sakakendo / broadcom-wl-dkms.sh
Created March 14, 2018 14:00 — forked from stevenmirabito/broadcom-wl-dkms.sh
Installs the broadcom-wl kernel module with DKMS
#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <smirabito@csh.rit.edu>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)
# coding: utf-8
# Your code here!
class C:
def __init__(self):
print(dir(),type(self))
def f(self):
print(dir())
# coding: utf-8
# Your code here!
dir()
val=3
print(dir(),__builtins__,__cached__)
for d in dir():
print(d,type(d))
# if type(d) is type('str'):
import builtins