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
{% assign dob = '1990-05-31 00:00' %} | |
{% assign claimed = '2022-06-01 18:48' %} | |
{% assign nowYear = 'now' | date: '%Y' %} | |
{% assign nowEpoch = 'now' | date: '%s' %} | |
{% assign nowTimestamp = 'now' | date: "%Y-%m-%d %H:%M" %} <!-- optional --> | |
{% assign claimedEpoch = claimed | date: '%s' %} | |
{% assign claimedTimestamp = claimed| date: "%Y-%m-%d %H:%M" %} <!-- optional --> |
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
-- Computerphile Infinite Data Structures see https://youtu.be/bnRNiE_OVWA | |
-- Output the factors of n | |
factors n = [x | x <- [1..n], mod n x == 0] | |
-- Twin primes | |
twin (x,y) = y==x+2 | |
-- Test n is prime number | |
prime n = factors n == [1,n] -- filter prime [1..] | |
-- Infinite primes list | |
primes = sieve [2..] |
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
Public Function MD5Hex(textString As String) As String | |
Dim enc | |
Dim textBytes() As Byte | |
Dim bytes | |
Dim oUTF8 | |
Dim outstr As String | |
Set oUTF8 = CreateObject("System.Text.UTF8Encoding") | |
Set enc = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider") |
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
:: Open up regedit.exe and add an entry to the batch file to make the doskey commands permanent for each cmd session. | |
:: HKEY_CURRENT_USER\Software\Microsoft\Command Processor | |
:: Add a new String Value called AutoRun and set the absolute path in the value of C:\Windows\bin\macros.doskey | |
:: Doskey Documentation | |
:: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490894(v=technet.10) | |
:: reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /d "doskey /macrofile=\"C:\Windows\bin\macros.doskey\"" /f | |
:: reg query "HKCU\Software\Microsoft\Command Processor" /v Autorun |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt] | |
@="@shell32.dll,-8506" | |
"Extended"="" | |
"NoWorkingDirectory"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command] | |
@="cmd.exe /s /k pushd \"%V\"" |
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
[Obsidian] | |
definition-foreground = #678CB1 | |
error-foreground = #FF0000 | |
string-background = #293134 | |
keyword-foreground = #93C763 | |
normal-foreground = #E0E2E4 | |
comment-background = #293134 | |
hit-foreground = #E0E2E4 | |
builtin-background = #293134 | |
stdout-foreground = #678CB1 |
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
#Name: Pause at layer | |
#Info: Pause the printer at a certain layer | |
#Depend: GCode | |
#Type: postprocess | |
#Param: pauseLevel(float:10) Pause level | |
#Param: parkX(float:190) Head park X (mm) | |
#Param: parkY(float:190) Head park Y (mm) | |
#Param: moveZ(float:0) Head move Z (mm) | |
#Param: retractAmount(float:5) Retraction amount (mm) | |
#Param: pauseAmount(float:1) Pause (seconds) |
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
angular.module("angular-owl-carousel", []) | |
.controller("FirstCtr", function() { | |
// Options for firstCarosel | |
this.carouselOptions = { id: 'firstCarousel' }; | |
// The carosel items | |
this.items = ['1','2','3','4']; | |
}).controller("SecondCtr",['$scope', function($scope) { |
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
-- -------------------------------------------------------------------------------- | |
-- Routine store_device_position | |
-- Note: This need to be saved as a stored procedure in your mysql database | |
-- you can check this link how to set up stored procedure | |
-- http://stackoverflow.com/questions/6115573/how-do-i-view-my-stored-procedures-in-phpmyadmin | |
-- -------------------------------------------------------------------------------- | |
DELIMITER $$ | |
CREATE DEFINER=`remote`@`%` PROCEDURE `store_device_position`(IN distance varchar(20), min_distance int(10), last_id bigint(20), | |
device_id bigint(20), rec_time datetime, valid tinyint(1), latitude double, longitude double, altitude double, |