Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div id="chart"></div>
//@version=3
//
study(title = "Heiken Ashi zero lag EMA v1.2 by JustUncleL", shorttitle="HAZEMA v1.2 by JustUncleL", overlay=true)
//
// Title: Heiken Ashi with non lag dot by JustUncleL
// Author: JustUncleL
// Version: 1.2
// Date: 5-feb-2016
//
@bradtraversy
bradtraversy / docker-help.md
Last active April 26, 2025 18:27
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@sandeeptalabathula
sandeeptalabathula / Program.cs
Last active October 14, 2022 15:06
Determine Whether Two Date Ranges Overlap Tests
namespace ConsoleApplication
{
using System;
class Program
{
/// <param name="args"></param>
static void Main(string[] args)
{
bool isoverlap;
@vkhorikov
vkhorikov / CustomerController.cs
Last active April 20, 2025 09:15
Handling failures and input errors in a functional way
[HttpPost]
public HttpResponseMessage CreateCustomer(string name, string billingInfo)
{
Result<BillingInfo> billingInfoResult = BillingInfo.Create(billingInfo);
Result<CustomerName> customerNameResult = CustomerName.Create(name);
return Result.Combine(billingInfoResult, customerNameResult)
.OnSuccess(() => _paymentGateway.ChargeCommission(billingInfoResult.Value))
.OnSuccess(() => new Customer(customerNameResult.Value))
.OnSuccess(
@em0ney
em0ney / example.html
Last active June 15, 2018 17:53
A list-group-addon for prepending glyphicons to list groups in Bootstrap-3
<ul class="list-group">
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-calendar"></span>
&nbsp;8th March 2014</li>
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-time"></span>
&nbsp;10:00</li>
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-flag"></span>
&nbsp;Location</li>
</ul>
@lakenen
lakenen / index.html
Last active September 21, 2024 14:43 — forked from abeppu/index.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div id="chart"></div>
using System;
using System.Text.RegularExpressions;
using System.Reflection;
namespace RegexLibraryBuilder
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class RegexBuilderMain
{
<?php
// This map would show Germany:
$south = deg2rad(47.2);
$north = deg2rad(55.2);
$west = deg2rad(5.8);
$east = deg2rad(15.2);
// This also controls the aspect ratio of the projection
$width = 1000;
public class RequireRouteValuesAttribute : ActionMethodSelectorAttribute {
public string[] ValueNames { get; private set; }
public RequireRouteValuesAttribute(params string[] valueNames) {
ValueNames = valueNames;
}
/// <summary>
/// Check for all strings
/// </summary>