Skip to content

Instantly share code, notes, and snippets.

View darthcoder's full-sized avatar
🫥
Avoiding actually working by any means possible

Abdul Basit Ahmad darthcoder

🫥
Avoiding actually working by any means possible
  • Canara Bank
  • India
View GitHub Profile
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
class Solution {
1.8658892
2.6044703
3.7317784
3.8483965
4.159378
4.2371235
4.664723
5.1311955
5.7531586
6.1030126
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');
@darthcoder
darthcoder / erroneous.py
Last active September 24, 2016 17:39
Attempting to simulate Kim et al 2014 but getting erroneous values.
# 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
@darthcoder
darthcoder / b.py
Created November 8, 2010 10:20
similar to u.py but working
#! /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
@darthcoder
darthcoder / velocity
Created November 7, 2010 15:56
ah but it doesnt work ffffuuuuu...
#! /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