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
Architecture | |
---- | |
What is Serverless | |
https://martinfowler.com/articles/serverless.html | |
Development | |
---- | |
Making Azure functions with VS Code | |
https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=nodejs |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Program | |
{ | |
public static void Main() | |
{ | |
Enumerable.Range(0, 9) |
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
Show hidden characters
{ | |
"extends": "tslint:all", | |
"rules": { | |
"object-literal-sort-keys": false, | |
"ordered-imports": false, | |
"member-ordering": [ | |
false | |
], | |
"member-access": [ | |
false |
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
# loaded via curl -fsSL [this RAW url] | sudo sh | |
dconf write /org/compiz/profiles/unity/plugins/unityshell/icon-size 30 | |
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 2 | |
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 2 | |
sudo apt-add-repository ppa:andrei-pozolotin/maven3 | |
sudo add-apt-repository ppa:git-core/ppa -y | |
sudo apt-get update | |
sudo apt-get install -y zsh git maven3 | |
#Add $JAVA_HOME path to exports | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
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
filename = "03hardcore.mp3" | |
pattern1 = / | |
\d\d # first two are numbers | |
.ardcore | |
\. # a dot | |
mp\d # mpx file | |
/x | |
puts pattern1 =~ filename # this returns 0 (match) |
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
class Workflow | |
def process | |
you_should_do_this_first | |
then_you_should_do_this | |
this_will_be_done_last | |
end | |
end | |
class Headhunter < Workflow |
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
#!/bin/bash | |
apt-get update -y | |
apt-get upgrade -y | |
apt-get install ruby1.9.1 - y | |
apt-get install ruby1.9.1-dev -y | |
apt-get install build-essential -y | |
apt-get install libsqlite3-dev -y | |
apt-get install nodejs -y | |
apt-get install git -y | |
apt-get install libxslt-dev -y |
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
module SessionsHelper | |
def sign_in(user) | |
cookies.permanent[:remember_token] = user.remember_token | |
self.current_user = user | |
end | |
def current_user=(user) | |
@current_user = user | |
end |
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
let fizzBuzz x = | |
match x with | |
| _ when (x % 15) = 0 -> "FizzBuzz" | |
| _ when (x % 3) = 0 -> "Fizz" | |
| _ when (x % 5) = 0 -> "Buzz" | |
| _ -> "" | |
let fizzBuzzTo max = | |
[1..max] | |
|> List.iter (fun number -> printfn "%d %s" number (fizzBuzz number)) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Numerical | |
{ | |
public class DataSeries | |
{ | |
public List<double> X { get; set; } |
NewerOlder