Skip to content

Instantly share code, notes, and snippets.

View Dreamersoul's full-sized avatar
🚀

Hamad AlGhanim Dreamersoul

🚀
View GitHub Profile
@Dreamersoul
Dreamersoul / mincurve.cs
Last active June 7, 2023 08:58
wellPath
using System;
using System.Collections.Generic;
using System.Windows.Media.Media3D;
namespace YourNamespace
{
public static class MinimumCurvature
{
public static List<Point3D> MinimumCurvatureInner(double[] md, double[] inc, double[] azi)
{
@Dreamersoul
Dreamersoul / Azimuth.cs
Last active June 7, 2023 09:56
Azimuth
using System;
namespace WellborePathCalculation
{
public class DeviationSurveyPoint
{
public double Azimuth { get; set; } // Azimuth angle in degrees
public double Depth { get; set; } // Depth in meters
public double Inclination { get; set; } // Inclination angle in degrees
public double DoglegSeverity { get; set; } // Dogleg severity in degrees per 30 meters

Keybase proof

I hereby claim:

  • I am dreamersoul on github.
  • I am hghanim (https://keybase.io/hghanim) on keybase.
  • I have a public key ASArl9-y9UbCuYw1LkhDhbuO5-_4f5Hi9QvynfIa-6_aUAo

To claim this, I am signing this object:

@Dreamersoul
Dreamersoul / civil.py
Last active November 23, 2016 11:13
civil id validation
civil_id = "CIVIL ID HERE" # ex "2950980214009"
civil_id = map(int, civil_id)
multiples = [2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]
summation = sum([a*b for a,b in zip(civil_id[:-1],multiples)]) # Multiply each number with its weight then sum them together
check = ((11-summation%11) == civil_id[11])
print check
@Dreamersoul
Dreamersoul / trakt-to-google-calendar.py
Last active August 8, 2022 06:04
you need to have already initialized trakt api with store=True
from __future__ import print_function
import httplib2
import os
from apiclient import discovery
import oauth2client
from oauth2client import client
from oauth2client import tools
import datetime