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
function myFunction() { | |
var e = getEvents(2019,5,18); | |
for(var i = 0; i < e.length; i++){ | |
var text = e[i].getTitle() + " : " + e[i].getDateCreated(); | |
Logger.log(text); | |
} | |
} | |
function getEvents(y,m,d){ | |
var cal = getCalendar(); // カレンダーの取得 |
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
const Eris = require('eris'); | |
const googlehome = require('google-home-notifier') | |
var deviceName = 'Google Home'; | |
var deviceIP = '192.168.x.x'; // default IP | |
var language = 'ja'; // default language code | |
googlehome.ip(deviceIP, language); | |
googlehome.device(deviceName,language); |
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
package main | |
import ( | |
"fmt" | |
"github.com/bwmarrin/discordgo" | |
"log" | |
"net/http" | |
"net/url" | |
) |
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
function myFunction() { | |
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet() | |
var sheet = spreadsheet.getActiveSheet(); | |
const startRow = 2 | |
const lastRow = sheet.getLastRow() - 1 | |
const dataRange = sheet.getRange(startRow, 1, lastRow, 3); | |
const data = dataRange.getValues(); | |
for (var i = 0; i < data.length; ++i) { |
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
" 文字コードの自動認識 | |
if &encoding !=# 'utf-8' | |
set encoding=japan | |
set fileencoding=japan | |
endif | |
if has('iconv') | |
let s:enc_euc = 'euc-jp' | |
let s:enc_jis = 'iso-2022-jp' | |
" iconvがeucJP-msに対応しているかをチェック | |
if iconv("\x87\x64\x87\x6a", 'cp932', 'eucjp-ms') ==# "\xad\xc5\xad\xcb" |
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
(function(){ | |
location.href= "javascript:function $x(x,c){c=c||document;var res=document.evaluate(x,c,null,4,null);for(var i,nodes=[];i=res.iterateNext();nodes.push(i));return nodes;}; var cfg = { patterns: [/^[\s【]*(AD|PR|AD|PR)[\s】]*[::]/i],style: {color: '#aaa', fontSize: '12px' }, interval: 1000, skip: true}; LDR.register_hook('AFTER_PRINTFEED', function() { var hist = []; var isComp = function(){ var len = hist.length; if(len < 3) return false; return hist[len-1] == hist[len-2] && hist[len-2] == hist[len-3]; }; var blocker = function(){ var titles = $x('//h2[@class=\"item_title\"]/a'); hist.push(titles.length); for(var i = 0; i < titles.length; i++){ var title = titles[i]; for(var j = 0; j < cfg.patterns.length; j++){ if((new RegExp(cfg.patterns[j])).test(title.innerHTML)){ setStyle(title, cfg.style); addClass(title.parentNode, 'laeb_blocked'); var childs = title.parentNode.parentNode.parentNode.childNodes; for(var k = 0; k < childs.length; k++){ if(childs[k].nodeType !== 1 || hasClass(childs[k], 'item_he |
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
function getUnreadList( $server = "", $sort = 0 ){ | |
$sql = "SELECT | |
channel.id, | |
channel.name, | |
substring(channel.name, locate('@', channel.name) + 1) as network | |
FROM channel | |
WHERE view = ?"; | |
$values = array(1); | |
if( !empty($server) ){ |
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
package Log::DBI; | |
use strict; | |
use warnings; | |
use IO::File; | |
use File::Spec; | |
use Tiarra::Encoding; | |
use base qw(Module); | |
use Module::Use qw(Tools::DateConvert Log::Logger Log::Writer); | |
use Tools::DateConvert; | |
use Log::Logger; |