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
window.$.fn.modal-ajax-form = (opt) -> | |
$modal = $ @ | |
$form = $modal.find \form | |
ajax-form-opt = do | |
before-submit: -> | |
$modal.find \button .add-class \loading | |
$form.find \.field.error .remove-class \error .find \span .empty! | |
success: -> | |
$modal.find \button .remove-class \loading |
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
import pandas | |
from datetime import timedelta, date | |
def getstockdate(dayary): | |
[y, m, d] = dayary | |
url = ('https://www.taifex.com.tw/chinese/3/3_1_1.asp?qtype=2&commodity_id=TX&commodity_id2&market_code=0&goday&dateaddcnt=0' | |
+ '&DATA_DATE_Y=%d' % y | |
+ '&DATA_DATE_M=%d' % m | |
+ '&DATA_DATE_D=%d' % d |
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
""" | |
======================= | |
Plot 2D data on 3D plot | |
======================= | |
Demonstrates using ax.plot's zdir keyword to plot 2D data on | |
selective axes of a 3D plot. | |
""" | |
from mpl_toolkits.mplot3d import Axes3D |
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; | |
void print_int_array(int a[], int length) { // helper function to print array | |
for(int i = 0; i < length; i++) { | |
cout << a[i] << " "; | |
} | |
cout << endl; | |
} |
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.
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.
OlderNewer