My Referral Code: https://app.dataquest.io/referral-signup/mivgw2ga/
Mission Outline
1. Comparing Object-Oriented to Functional
2. Understanding Pure Functions
3. The Lambda Expression
4. The Map Function
- The Filter Function
My Referral Code: https://app.dataquest.io/referral-signup/mivgw2ga/
Mission Outline
1. Comparing Object-Oriented to Functional
2. Understanding Pure Functions
3. The Lambda Expression
4. The Map Function
https://extensions.gnome.org/extension/779/clipboard-indicator/ | |
https://extensions.gnome.org/extension/307/dash-to-dock/ | |
https://extensions.gnome.org/extension/1065/docker-status/ | |
https://extensions.gnome.org/extension/1319/gsconnect/ | |
https://extensions.gnome.org/extension/28/gtile/ | |
https://extensions.gnome.org/extension/545/hide-top-bar/ | |
https://extensions.gnome.org/extension/104/netspeed/ | |
https://extensions.gnome.org/extension/750/openweather/ | |
https://extensions.gnome.org/extension/240/persian-calendar/ | |
https://extensions.gnome.org/extension/19/user-themes/ |
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
type NIDError string |
package info | |
import ( | |
"fmt" | |
"time" | |
) | |
var ( | |
AppVersion string | |
BuildTime string |
result := make([]map[string]interface{}, 0) | |
columns, err := rows.Columns() | |
if err != nil { | |
return nil, err | |
} | |
numCol := len(columns) | |
values := make([]interface{}, numCol) | |
valuePtrs := make([]interface{}, numCol) | |
for rows.Next() { |
# follow http://fzero.rubi.gd/post/general/gpg-step-by-step/ for creating a gpg key | |
# set the gpgp-sign commit flag to true (globally) | |
git config --global commit.gpgsign true | |
# find the key ID ([S]) | |
gpg --list-secret-keys --keyid-format LONG <EMAIL> | |
# introduce your key ID to git (globally) | |
git config --global user.signingkey <KEY_ID> |
import ( | |
"time" | |
"github.com/stretchr/testify/assert" | |
) | |
func compareTimes(t assert.TestingT, expected, actual [2]time.Time) { | |
assertTruefTime(t, "start", expected[0], actual[0]) | |
assertTruefTime(t, "end", expected[1], actual[1]) | |
} |
import scala.annotation.tailrec | |
val a = List(1, 2, 3, 4) | |
@tailrec | |
def powerset(current: List[List[Int]], given: List[Int]): List[List[Int]] = given match { | |
case Nil => current | |
case head :: tail => powerset(current ++ (current map {x => head::x}), tail) | |
} |
export $(echo "BFN_query_timeout_seconds" | tr -t "[:lower:]" "[:upper:]")=5 |
import logging | |
from pympler import muppy, summary | |
def mem_leak(): | |
all_objects = muppy.get_objects() | |
sum1 = summary.summarize(all_objects) | |
logging.debug("\n" + "\n".join(list(summary.format_(sum1)))) |