- 誰かだけが触れるコードを無くす
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 sys | |
import time | |
from libpebble2.communication import PebbleConnection | |
from libpebble2.communication.transports.serial import SerialTransport | |
from libpebble2.protocol.base import PebblePacket | |
from libpebble2.protocol.base.types import * | |
from libpebble2.protocol.system import * | |
pebble = PebbleConnection(SerialTransport(sys.argv[1])) # argument like /dev/cu.Pebble... | |
pebble.connect() |
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
{-# Language OverloadedStrings #-} | |
import Git | |
import Git.Libgit2 (lgFactory) | |
import Data.Tagged | |
gitStuff = do | |
Just ref <- resolveReference "HEAD" | |
commit <- lookupCommit $ Tagged ref | |
history <- lookupCommitParents commit |
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
{-# LANGUAGE GADTs, RankNTypes, TypeOperators, DataKinds, KindSignatures #-} | |
{-# LANGUAGE UndecidableInstances, FlexibleInstances, MultiParamTypeClasses #-} | |
{-# LANGUAGE FunctionalDependencies, ScopedTypeVariables, TypeFamilies #-} | |
{-# LANGUAGE FlexibleContexts, ConstraintKinds #-} | |
module MakeLense ( | |
Name(..), Proxy(..), | |
UnionT, | |
Union(..), | |
-- keysH, keysU, HasKey, | |
Has, |
I wrote a WebRTC SFU from scratch
- Author
@voluntas
- Translator
@alanmshelly
- Version
0.0.0
- url
https://ja.wikipedia.org/wiki/JavaScript_Object_Notation
- Python標準に含まれている
- 仕様が厳格に決まっている
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
#define maguro() printf("🍣\n"); |
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
<html> | |
<head> | |
<script type="text/javascript" | |
src="https://www.airconsole.com/api/airconsole-1.7.0.js"></script> | |
<script type="text/javascript"> | |
navigator.vibrate = (navigator.vibrate || | |
navigator.webkitVibrate || | |
navigator.mozVibrate || | |
navigator.msVibrate); |
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
# レンダリング用コマンドライン自動生成 | |
# render_nodesを複数にするとフレームを分割してコマンドをprintする | |
# フレームの分割がたまにミスるのはご愛嬌(放置中) | |
from pymel.core import * | |
# settings | |
tmpl = '"%(render_path)s" -r %(renderer)s %(frame_range)s -proj "%(proj)s" "%(scene)s"' | |
render_path = r'C:\Program Files\Autodesk\Maya2014\bin\Render' | |
renderer = 'mr' | |
platform = 'win' |
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
$ sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2 | |
$ wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz | |
$ tar xvf Python-2.7.10.tgz | |
$ cd Python-2.7.10/ | |
$ ./configure --prefix /usr/local/lib/python2.7.10 --enable-ipv6 | |
$ make | |
$ sudo make install |
NewerOlder