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
| /** | |
| * Definition for singly-linked list. | |
| * public class ListNode { | |
| * int val; | |
| * ListNode next; | |
| * ListNode(int x) { val = x; } | |
| * } | |
| */ | |
| class Solution { |
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
| 1.8658892 | |
| 2.6044703 | |
| 3.7317784 | |
| 3.8483965 | |
| 4.159378 | |
| 4.2371235 | |
| 4.664723 | |
| 5.1311955 | |
| 5.7531586 | |
| 6.1030126 |
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
| var Twitter = require('twitter'); | |
| var client = new Twitter({ | |
| consumer_key: process.env.TWITTER_CONSUMER_KEY, | |
| consumer_secret: process.env.TWITTER_CONSUMER_SECRET, | |
| access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY, | |
| access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET | |
| }); | |
| const fs = require('fs'); |
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
| # Kim, Sohn and Hwang's paper from 2014 is simulated here: | |
| # The main formula is: | |
| # | |
| # , , , , ,2 | |
| # Q = V - (C V + V )(1 - \alpha / (1 + 0.5 f V ) ) .... (1) | |
| # L M 0 M TS M | |
| # | |
| # , , , | |
| # Where, V = Q + Q | |
| # M G L |
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
| #! /usr/bin/python2 | |
| """This is a module that returns the induction | |
| Once u_i(y) and cos(l_i*z) are known. The variables might be renamed | |
| this is just a guide. | |
| m&b refers to text. | |
| """ | |
| from math import fabs, cos, sin, cosh, sinh, hypot, pi | |
| TOL_MIN = 1e-6 | |
| #TOL_MAX = 1e6 |
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
| #! /usr/bin/python2 | |
| """This is a module that returns the analytical velocity. | |
| Once u_i(y) and cos(l_i*z) are known. The variables might be renamed | |
| this is just a guide. | |
| m&b refers to text. | |
| """ | |
| from math import fabs, cos, sin, cosh, sinh, hypot, pi | |
| TOL = 1e-6 |