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
https://g200kg.github.io/web-audio-api-ja/ のを TypeScript 化と少し機能を整理 |
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
#NoEnv | |
SendMode Input | |
SetWorkingDir %A_ScriptDir% | |
#SingleInstance force | |
#include %A_ScriptDir%/VA.ahk | |
GetDefaultCaptureCommDevice() { | |
if (r := DllCall("ole32\CoCreateInstance" | |
, "ptr", VA_GUID(CLSID_MMDeviceEnumerator, "{BCDE0395-E52F-467C-8E3D-C4579291692E}") |
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
azure = require 'azure' | |
process.env['AZURE_STORAGE_ACCOUNT'] = 'xxxx' | |
process.env['AZURE_STORAGE_ACCESS_KEY'] = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==' | |
EPOCH = 621355968000000000 | |
# Unix epoch to Ticks | |
exports.getTicks = (date) -> | |
(date.getTime() * 10000) + EPOCH |
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
from azure.storage import TableService | |
def query_all(account_name, account_key, table_name, query): | |
nextpartitionkey = None | |
nextrowkey = None | |
ts = TableService(account_name, account_key) | |
while True: | |
rows = ts.query_entities(table_name, query, next_partition_key=nextpartitionkey, next_row_key=nextrowkey) |
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
def get_ticks(date): | |
unix_time = datetime(1, 1, 1) | |
delta = date - unix_time | |
return int(delta.total_seconds() * 10000000) + (delta.microseconds * 10) | |
def ticks_to_date(ticks): | |
delta = timedelta(microseconds=ticks / 10) | |
return datetime(1, 1, 1) + delta |
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
pkgname=kdeutils-ark-ja | |
pkgver=4.9.1 | |
pkgrel=1 | |
pkgdesc='Archiving Tool' | |
url='http://kde.org/applications/utilities/ark/' | |
arch=('i686' 'x86_64') | |
license=('GPL' 'LGPL' 'FDL') | |
groups=('kde' 'kdeutils') | |
depends=('kdebase-runtime' 'kdebase-lib' 'libarchive' 'qjson') | |
makedepends=('cmake' 'automoc4') |
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 python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import sys | |
import hashlib | |
import gio | |
def get_hash_of_sha1(fname): |
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
#!/bin/bash | |
BASEDIR=`dirname $0` | |
SBT_VERSION=0.11.3 | |
SBT_OPTS= | |
SBT_ARGS=() | |
function get-launcher() { | |
if [[ $# -ne 1 ]]; then | |
exit 1 |
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
# - Find Thrift (a cross platform RPC lib/tool) | |
# Once done this will define | |
# | |
# THRIFT_ROOT - Set this variable to the root installation of Thrift | |
# | |
# Variables defined by this module: | |
# | |
# Thrift_FOUND - system has the Thrift library | |
# Thrift_NB_FOUND - system has the Thrift non-blocking library | |
# Thrift_VERSION - version number of the Thrift libraries that have been found |
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 <iostream> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/spirit/include/phoenix.hpp> | |
using namespace std; | |
using namespace boost::spirit; | |
namespace phx = boost::phoenix; | |
struct Test | |
{ |
NewerOlder