Skip to content

Instantly share code, notes, and snippets.

View YukiSakamoto's full-sized avatar

Yuki Sakamoto YukiSakamoto

  • Osaka, Japan
  • 23:29 (UTC +09:00)
View GitHub Profile

2017.11.10

現状

ReactionRuleから、Descriptorがよびだせる。

呼び出し方・引数は、添付のコード参照。

次の対応

184dc: 0f 87 fe fe ff ff ja 183e0 <nuclear_attraction_PGTO(PrimitiveGTO const&, PrimitiveGTO const&, Atom const&)+0x430>
184e2: f2 0f 58 05 46 c7 02 addsd xmm0,QWORD PTR [rip+0x2c746] # 44c30 <long double boost::math::lanczos::lanczos17m64::lancz os_sum_expG_scaled<long double>(long double const&)::num+0x1d0>
184e9: 00
184ea: be 3d 00 00 00 mov esi,0x3d
184ef: 4c 89 f7 mov rdi,r14
184f2: f2 0f 11 44 24 78 movsd QWORD PTR [rsp+0x78],xmm0
184f8: e8 13 da ff ff call 15f10 <fegetexceptflag@plt>
184fd: bf 3d 00 00 00 mov edi,0x3d
18502: e8 19 dc ff ff call 16120 <feclearexcept@plt>
18507: dd 44 24 78 fld QWORD PTR [rsp+0x78]
#import pickle
import dill as pickle
def test_func(arg1, arg2, arg3, arg4):
return arg1 * 1000 + arg2 * 100 + arg3 *10 + arg4
class hoge_class:
def __init__(self, attribute):
self.attribute = 4
def get_attribute(self):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YukiSakamoto
YukiSakamoto / use_yolp.py
Created September 27, 2015 06:17
Sample code using Yahoo! Local Search APi
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import urllib
import xmltodict
app_id = "XXX" #XXX Should be modified.
data = {}
data['query'] = (u"スターバックス").encode('utf-8')
data['ac'] = 11 # Saitama
#include <numeric>
#include <functional>
#include <vector>
#include <iostream>
typedef std::vector<int> int_vector;
int main(void)
{
int_vector v;
@YukiSakamoto
YukiSakamoto / Kanagawa.csv
Created September 19, 2014 22:05
Starbucks Stores
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 10 columns, instead of 5. in line 8.
id,name,region,weekday,friday,saturday,sunday,tel,seats,lan
113,川崎モアーズ店,神奈川県川崎市川崎区,07:00~22:30,07:00~22:30,07:00~22:30,07:00~22:30,044-200-0977,100,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
888,アトレ川崎店,神奈川県川崎市川崎区,10:00~21:00,10:00~21:00,10:00~21:00,10:00~21:00,044-221-6333,78,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
409,川崎 ラ チッタデッラ店,神奈川県川崎市川崎区,07:00~23:00,07:00~23:00,07:00~23:00,07:00~23:00,044-223-1570,94,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
343,川崎 丸井店,神奈川県川崎市川崎区,07:00~23:00,07:00~23:00,07:00~23:00,07:00~23:00,044-246-6765,41,
419,武蔵小杉北口店,神奈川県川崎市中原区,07:00~22:00,07:00~22:00,07:00~22:00,07:00~22:00,044-738-3137,33,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
1088,武蔵小杉東急スクエア店,神奈川県川崎市中原区,07:00~22:30,07:00~22:30,07:00~22:30,07:00~22:30,044-738-2350,60,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
697,ラゾーナ川崎店,神奈川県川崎市幸区,07:30~22:00,07:30~22:00,07:30~22:00,07:30~22:00,044-874-8359,58,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300
809,Qiz溝の口店,神奈川県川崎市高津区,07:00~22:30,07:00
@YukiSakamoto
YukiSakamoto / objdump.S
Created September 10, 2014 14:42
Simple test of passing function pointers
./a.out: file format mach-o-x86-64
Disassembly of section .text:
0000000100000e90 <__Z2f1d>:
100000e90: 55 push %rbp
100000e91: 48 89 e5 mov %rsp,%rbp
100000e94: f2 0f 11 45 f8 movsd %xmm0,-0x8(%rbp)