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
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. See the AUTHORS file for names of contributors. | |
#include <deque> | |
#include <set> | |
#include <dirent.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <pthread.h> |
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
--- ./configure.ac.orig 2013-12-01 12:29:50.000000000 +0900 | |
+++ ./configure.ac 2013-12-01 12:41:57.000000000 +0900 | |
@@ -32,6 +32,15 @@ | |
[] | |
) | |
+AC_CHECK_LIB( [gfapi], [glfs_new], | |
+ [ | |
+ GFAPI_LIBS="-lgfapi" | |
+ AC_SUBST([GFAPI_LIBS]) |
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
#!/usr/bin/perl | |
# | |
# cdconv - Command line CD ripper and ogg-vorbis encoder | |
# | |
# 2008/09/27 ver1.1 | |
# | |
use strict; | |
use CDDB_get qw( get_cddb get_discids ); |
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 -xe | |
. /reoot/keystonerc_admin | |
export MYSQL_ROOT_PASSWORD=$(grep CONFIG_MYSQL_PW /root/quickrdo/controller.txt | cut -f2 -d=) | |
export HEAT_DB_PASSWORD_OF_CHOICE=pas4heat | |
yum -y install "openstack-heat-*" python-heatclient | |
heat-db-setup rpm -y -r ${MYSQL_ROOT_PASSWORD} -p ${HEAT_DB_PASSWORD_OF_CHOICE} | |
sed -i "s/%ENCRYPTION_KEY%/`hexdump -n 16 -v -e '/1 "%02x"' /dev/random`/" /etc/heat/heat-engine.conf |
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
#!/usr/bin/perl | |
# | |
# podgetter.pl | |
# | |
# Podcast downloader exclusively for BBC Radio | |
# | |
# 2014/04/11 v1.0 | |
# 2014/06/10 v1.1 | |
# |
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/bash -x | |
LANG=C | |
basepass="XXXXXXXX" | |
reposerver="xxx.xxx.xxx.xxx" | |
function prep_network { | |
set -x | |
yum -y update | |
yum -y groupinstall "Gnome Desktop" |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
import pandas.io.data as web | |
from numpy.random import randint, randn, rand, multivariate_normal | |
def run_perceptron(axes): | |
n1 = randint(40,80) |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
from numpy.random import randint, randn, rand | |
Size = 50 | |
J = 1 | |
H = 0.0 | |
Temp = 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
from numpy.random import randint, randn, rand, multivariate_normal | |
def run_perceptron(ax): | |
n1 = 60 | |
n2 = 40 |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from pandas import Series, DataFrame | |
from numpy.random import randint, randn, rand, multivariate_normal | |
K = 3 # Number of classes (2 or 3) | |
N = 50 # Number of training data | |
HR = 200 # Heatmap resolution |