- Factorial: https://github.com/theodesp/go-hackerearth/blob/master/basic-programming/Factorial.go
- Get Prime Numbers: https://github.com/theodesp/go-hackerearth/blob/master/basic-programming/PrimeNumber.go
- Count bits in number:
- Transpose Matrix:
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Hosting; | |
public class Program | |
{ | |
public static void Main(string[] args) => | |
Host.CreateDefaultBuilder(args) | |
.ConfigureWebHostDefaults(webBuilder => |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
cinst -y --ignore-checksums` | |
choco feature enable -n=allowGlobalConfirmation | |
choco install googlechrome | |
choco install firefox | |
choco install brave | |
choco install greenshot | |
choco install microsoft-teams | |
choco install octopustools | |
choco install flashplayerplugin |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages | |
SNSRole: |
150 Bitcoin Haikus, | |
explaining economics, technology, and philosophy. | |
By Trevor Salyzyn | |
----- | |
Scarcity is lack | |
When there is no longer lack, | |
You're postcapital. |
Picking the right architecture = Picking the right battles + Managing trade-offs
# -*- coding: utf-8 -*- | |
""" | |
common-crawl-cdx.py | |
A simple example program to analyze the Common Crawl index. | |
This is implemented as a single stream job which accesses S3 via HTTP, | |
so that it can be easily be run from any laptop, but it could easily be | |
converted to an EMR job which processed the 300 index files in parallel. |
# http://technet.microsoft.com/en-us/library/ee692685.aspx | |
# F7 = history | |
# Alt+F7 = history -c | |
# F8 = Ctrl+R | |
Set-Location C: | |
# Easier navigation | |
Set-Alias o start | |
function oo {start .} |
get-process | where { $_.name -match "WebDev" -or $_.name -match "IISExpress" } | kill |
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |