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/env/perl | |
use strict; | |
use warnings; | |
use utf8; | |
sub eval_func { |
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
# coding: utf-8 | |
# In[1]: | |
import os | |
import tensorflow as tf | |
import glob | |
import random | |
from numpy.random import randint |
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
# coding: utf-8 | |
import os | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
int x = 0; | |
int n = 100; | |
pthread_t tid[100]; | |
pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
int x = 0; | |
int n = 100; | |
pthread_t tid[100]; |
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
[mysql] | |
prompt='\\u@\\h[\\d]:\\c> ' |
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 lang="ja"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
</head> | |
<body> | |
<div id="item-1" class="item" style="height: 100px; border-style: dotted"> | |
テストだよ。 | |
</div> | |
<div id="item-2" class="item" style="height: 100px; border-style: dotted"> | |
テストだよ。 |
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
use Fcntl qw(:flock LOCK_NB); | |
use Parallel::ForkManager; | |
my $pm = new Parallel::ForkManager(2); | |
for (1..2) { | |
my $pid = $pm->start and next; | |
write_file(); | |
$pm->finish; | |
} |
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
use Fcntl qw(:flock LOCK_NB); | |
use Parallel::ForkManager; | |
my $pm = new Parallel::ForkManager(2); | |
for (1..2) { | |
my $pid = $pm->start and next; | |
write_file(); | |
$pm->finish; | |
} |
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
# download box | |
$ cd ~/Downloads; | |
$ curl -L http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box -o CentOS-6.4-x86_64-v20130427.box | |
# add box | |
$ vagrant box add centos6.4-x86_64 ./CentOS-6.4-x86_64-v20130427.box | |
# initialize | |
$ mkdir ~/vagrant; cd ~/vagrant | |
$ vagrant init centos6.4-x86_64 |
NewerOlder