Skip to content

Instantly share code, notes, and snippets.

View 64lines's full-sized avatar

Julian Alexander Murillo 64lines

  • Huge Inc.
  • Medellin - Colombia
  • X @64lines
View GitHub Profile
@64lines
64lines / stock-simulator-29-05-2022.pro
Last active May 30, 2022 00:22
Simulador de compra y venta de acciones auto adaptables.
/*
* Stock buy and sell sensor simulation
*
* Author: Julian Murillo
* Date: May 2022
*
* simul(File, Format, What, StockPrice, InvestmentHorizon, LC, TotC): simulation predicate
*
* File = 'console' or a filename (suffix '.csv' or '.txt' is added if none present)
* Format = 'txt' or 'csv' (format of the output)
@64lines
64lines / if-then-else.js
Created June 9, 2021 19:09
Functional if then else statement
/** Functional If Then Else **/
const condition = ({ If, Then, Else }) => If ? Then : Else
condition({
If: true,
Then: () => {
console.log(`That is true`)
},
Else: () => {
console.log(`That is NOT true`)
@64lines
64lines / calculatePiByInfiniteSeries.md
Last active May 24, 2021 14:36
Calculate Pi using the infinite series formula

Calculating π with the Infinite series formula

Infinite series formula

The infinite series formula for calculating π is the following, according to Leibniz:

π/4 = 1/1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 ...
@64lines
64lines / azuremediaplayer.html
Last active May 21, 2021 23:25
Azure Media Player implementation disabling volume scroll and logo with autoplay for all devices, the azure script was also included
<video class="azuremediaplayer amp-default-skin" preload="auto" type="video/mp4" data-setup='{ "techOrder": ["azureHtml5JS", "flashSS", "html5FairPlayHLS","silverlightSS", "html5"], "hotKeys": { "enableVolumeScroll": false }, "logo": { "enabled": false }, "nativeControlsForTouch": false, "autoplay": true}' playsinline controls autoplay>
<source src="https://thevideo.streaming.media.azure.net/dbaa79ad688e-bce3-43b8-bce3-dbaa79ad688e/the-video.ism/manifest" type="application/vnd.ms-sstr+xml"/>
<p class="amp-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video</p>
</video>
<script src= "//amp.azure.net/libs/amp/latest/azuremediaplayer.min.js"></script>
@64lines
64lines / ubuntu.sh
Created May 16, 2020 00:14
[DOCKER] Install ubuntu with Docker
docker pull ubuntu
docker run -ti --entrypoint /bin/sh ubuntu
@64lines
64lines / Install Postgres with Docker.sh
Created March 10, 2020 18:35
[DOCKER] - Install Postgres with Docker
docker pull postgres
docker run -p 5432:5432 --name some-postgres -e POSTGRES_PASSWORD=postgres -d postgres
@64lines
64lines / date_picker.js
Created February 5, 2020 14:03
[BOOTSTRAP] datepicker
/*!
* Datepicker for Bootstrap v1.9.0 (https://github.com/uxsolutions/bootstrap-datepicker)
*
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
(function(factory){
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
@64lines
64lines / server.py
Created September 27, 2019 19:04
[PYTHON] - Server class to serve simple html objects.
import http.server
import socketserver
import sys
class Server:
"""
Server class to serve simple html objects.
"""
DEFAULT_PORT = 8000
@64lines
64lines / fabric_waves.html
Created September 23, 2019 15:19
[ALGORITHMIC ART] - Fabric Waves
<body>
<canvas id="can" width="1200" height="600">
</canvas>
<script>
ctx = can.getContext("2d");
size = 2;
space = 1;
lines = 1000;
@64lines
64lines / heartbeat.html
Last active September 22, 2019 16:57
[ALGORITHMIC ART] - Heartbeat
<body>
<canvas id="can" style="height:100%; width: 100%;"
style="border:1px solid #c3c3c3;">
</canvas>
<script>
var canvas = document.getElementById("can");
var ctx = canvas.getContext("2d");
num = 0;
colornum = 0;