Compare and Swap
bzip2: tar.bz2の展開に必要
gcc
make
libdb-dev: _bsddbモジュール(python3には無い)に必要
libreadline-dev: _curses、_curses_panel、readlineモジュールに必要
libsqlite3-dev: _sqlite3モジュールに必要
libssl-dev: _sslモジュールに必要(zlibモジュールに必要なzlib1g-devも依存関係でインストールされる)
tk-dev: _tkinterモジュールに必要
libbz2-dev: bz2モジュールに必要
This file contains hidden or 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
var tag_helpers = { | |
relative_path: function(basePath) { // I want basePath in this scope. | |
var pathDepth = basePath.split('/').length -2; | |
var path = new Array(pathDepth + 1).join('../'); | |
return path; | |
} | |
}; | |
module.exports = { | |
get: function(basePath, file_extension, options, callback){ |
This file contains hidden or 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
<?php | |
trait ConstMapTrait{ | |
private static $const_map = []; | |
public static function const_map($prefix = 0){ | |
if(! isset(self::$const_map[$prefix])){ | |
if(0 === $prefix){ | |
self::$const_map[$prefix] = (new \ReflectionClass(get_called_class()))->getConstants(); | |
} else { | |
self::const_map(); | |
$list = self::$const_map[0]; |
This file contains hidden or 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 UnityEditor; | |
using UnityEditorInternal; | |
namespace Kanonji.TagManagerEvent | |
{ | |
public delegate void OnTagsChangedHandler(string[] tags); | |
public class Publisher | |
{ | |
public static event OnTagsChangedHandler OnTagsChanged; |
This file contains hidden or 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/sh | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. | |
echo "\$ \$(cd ..)" | |
$(cd ..) | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. |
This file contains hidden or 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/sh | |
echo " #${0} begin" | |
echo " echo \$WORKING_DIR" | |
echo " ${WORKING_DIR}" | |
echo " #${0} end" |
This file contains hidden or 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
/session |
This file contains hidden or 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
<?php | |
class SimpleDelegate { | |
protected $callbacks = []; | |
public function add(Closure $callback, $key = null){ | |
$key = $key?: spl_object_hash($callback); | |
$this->callbacks[$key] = $callback; | |
} |