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> | |
using namespace std; | |
template <class T> | |
struct A; | |
template <class T, bool is_transposed, bool is_partial> | |
struct A_View : public A<T> { | |
struct { |
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
void main(){ | |
double AR = AE / RE, | |
ARN = AR, | |
AC = 0.0, | |
A = 0.0, | |
B = 0.0; | |
int K = 3; | |
for(int N = 2; N <= NMAX; N++){ // DO 030 N=2,NMAX | |
ARN *= AR; | |
K++; |
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
gem install bundler | |
# gem env | grep "EXECUTABLE DIRECTORY" の結果を受けて | |
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc | |
git clone --depth 1 https://github.com/SciRuby/rb-gsl.git | |
cd rb-gsl | |
bundler install | |
# ソースコードの修正、例えば | |
patch -p0 << __PATCH_LINE__ | |
--- ext/gsl_native/sf_legendre.c.orig 2017-07-28 23:28:56.944690200 +0900 | |
+++ ext/gsl_native/sf_legendre.c 2017-07-28 23:44:56.284917800 +0900 |
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
.class public Lcom/miui/fmservice/FmServiceUtils; | |
.super Ljava/lang/Object; | |
.source "FmServiceUtils.java" | |
# static fields | |
.field public static final BASE_FREQUENCY:F = 0.1f | |
.field public static final FRAMEWORK_AUDIOSOURCE_FM:I = 0x7ce |
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
12-24 23:36:02.925 5405 5422 D android_hardware_fm: void ConfigFmThs::SetRxSearchAfThs(const char*, UINT): file name is: /etc/fm/fm_srch_af_th.conf | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: File has carriage return | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: line is not comment | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: group hash code is: 138594 | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: group index is: 4 | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: line is grp | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: File has carriage return | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: line is not comment | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: start mark is not '[' | |
12-24 23:36:02.928 5405 5422 E android_hardware_fm: Grp: BANDCONFIG, key: RadioBand, value: 2 |
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
.class public Lcom/android/fmradio/FmUtils; | |
.super Ljava/lang/Object; | |
.source "FmUtils.java" | |
# static fields | |
.field private static final CONVERT_RATE:I = 0xa | |
.field public static final DEFAULT_STATION:I = 0x3e8 |
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
version: 1.0.{build}.{branch} | |
configuration: Release | |
build: | |
project: tool\NinjaScanLight_tools.sln | |
verbosity: minimal | |
after_build: | |
- cmd: 7z a windows.%APPVEYOR_REPO_BRANCH%.zip %APPVEYOR_BUILD_FOLDER%\tool\build_VC\%CONFIGURATION%\*.exe | |
artifacts: | |
- path: windows.*.zip | |
name: x86 binary |
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/bash -ex | |
# original: http://romgrammer.blog.fc2.com/blog-entry-4.html | |
ffmpeg_dir=`pwd` | |
srcdir="$ffmpeg_dir/ffmpeg_sources" | |
prefix="$ffmpeg_dir/ffmpeg_build" | |
bindir="$ffmpeg_dir/bin" | |
cpus=$(( (`cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -1` + 1) / 2 )) | |
if [ ! -d ffmpeg_sources ]; then mkdir ffmpeg_sources; fi |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
char cmd_str[] = \ | |
"$ te\\x4Ast\\r\\n\r\n" | |
"> OK\r\n" | |
"$ hoge\\r\\n\r\n" | |
"> ERROR\r\n" | |
"$ error\\r\\n\r\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
--- c_icap-0.4.2/os/unix/shared_mem.c.orig 2015-08-27 18:01:51.000000000 +0900 | |
+++ c_icap-0.4.2/os/unix/shared_mem.c 2016-02-13 17:46:21.000000000 +0900 | |
@@ -99,6 +99,9 @@ const ci_shared_mem_scheme_t sysv_scheme | |
#if defined(USE_POSIX_MAPPED_FILES) | |
+#if defined(__APPLE__) | |
+#define MAP_ANONYMOUS MAP_ANON | |
+#endif |