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 matplotlib.pyplot as plt | |
import matplotlib.patches as p | |
from scipy import signal | |
import sympy | |
sympy.init_printing(use_latex='png') | |
def sys2expandExpr(sys): | |
num, den = sympy.fraction(sympy.simplify(sys)) |
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 requests, zipfile, io | |
HEADERS = { | |
'User-Agent': 'My Sample Edinet API app', | |
} | |
def getDocumentList(): | |
# 書式一覧API | |
# GET https://disclosure.edinet-fsa.go.jp/api/v1/documents.json |
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
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script> | |
<script src="script.js" defer="defer"></script> | |
</head> | |
<body></body> | |
</html> |
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
# -> For a Blender 2.8+ version, go to https://gist.github.com/p2or/2947b1aa89141caae182526a8fc2bc5a | |
# https://blender.stackexchange.com/q/57306/3710, https://blender.stackexchange.com/q/79779/3710 | |
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# |
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
/** | |
* eval-calculation.js | |
* evaluate calculation formula. | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/54b074cab2145efddb48765652c74710 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ |
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
This is a template for creating and running a Jetty web application, using Jersey + Jackson for REST, and Weld for CDI. | |
It is organized as a maven project, which builds a WAR file deployable to a standalone Jetty server. | |
The Jetty maven plugin - which is more suitable for development time - is also configured in the pom.xml. | |
Comments: | |
* As Jetty is a servlet-3.0 compatible container, no configuration is needed in web.xml | |
* Due to a bug in maven, it's required to use version 3.2.2 or above | |
* The JaxRs API classes are to be placed at the package - or below - the one where 'RestConfig.java' is | |
* When using in standalone Jetty installation, enable the 'cdi' module before deploying | |
>> java -jar start.jar --add-to-startd=cdi |
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 <Foundation/Foundation.h> | |
#define TIMEOUT_INTERVAL 10 | |
@interface HttpRequestDelegate : NSObject<NSURLConnectionDelegate> { | |
NSURLConnection *connection; | |
NSMutableData *receivedData; | |
NSURLResponse *responseData; | |
BOOL synchronousOperationComplete; | |
} |