This file contains 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
// Convert each presentation to a PDF... | |
find . -ipath "*pptx" -exec libreoffice --impress --show --convert-to pdf {} \; | |
// Extract the first page from each PDF into a separate file... | |
find . -iname "*.pdf" -exec pdfseparate -l 1 {} {}-page%d.pdf \; | |
// Concat each PDF into a single document | |
find . -iname "*.pdf" -exec sh -c 'pdfunite "$@" cover-pages.pdf' sh {} + |
This file contains 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
@startuml C4_Elements | |
!includeurl https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/release/1-0/C4_Context.puml | |
title Kata - I'll Have The BLT | |
LAYOUT_TOP_DOWN | |
Person(customerAlias, "Customer", "") | |
Person(marketingAlias, "Marketing", "") |
This file contains 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
{"version":1,"resource":"file:///home/amarks/code/exercism/elixir/pangram/lib/pangram.ex","entries":[{"id":"PB00.ex","timestamp":1650836967280},{"id":"oxQb.ex","timestamp":1650836992868},{"id":"mKRv.ex","timestamp":1650837016064},{"id":"ygVo.ex","timestamp":1650837108363},{"id":"S1xC.ex","timestamp":1650837348002},{"id":"olE8.ex","timestamp":1650837584768},{"id":"mMEO.ex","timestamp":1650837619276},{"id":"0eTk.ex","timestamp":1650841076670},{"id":"LsPc.ex","timestamp":1650841129041},{"id":"6Anx.ex","source":"undoRedo.source","timestamp":1650841137893}]} |
This file contains 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
(Source: https://en.wikipedia.org/wiki/List_of_system_quality_attributes) | |
accessibility | |
accountability | |
accuracy | |
adaptability | |
administrability | |
affordability | |
agility | |
auditability |
This file contains 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
import csv | |
import pandas as pd | |
events = pd.read_csv('data/temperature_events.zip', | |
compression='infer', | |
parse_dates={'event_time_index': ['event_time']}, | |
index_col='event_time_index' | |
) | |
maxtemps = events.resample('5Min').max() |
This file contains 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
export default board => | |
`${chunk(board, 8) | |
.map(row => row.join('')) | |
.map(str => str.replace(/\.+/g, match => match.length)) | |
.join('/')} w - - 0 1`; |
This file contains 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
from pubnub.callbacks import SubscribeCallback | |
from pubnub.enums import PNStatusCategory | |
from pubnub.pnconfiguration import PNConfiguration | |
from pubnub.pubnub import PubNub, SubscribeListener | |
import logging | |
import pubnub | |
pubnub.set_stream_logger('pubnub', logging.DEBUG) |
This file contains 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
defmodule Day1 do | |
def hypotenuse(side1, side2) do | |
:math.sqrt((side1 * side1) + (side2 * side2)) | |
end | |
def word_count(atom_list), do: word_count(atom_list, %{}) | |
def word_count([], map_of_atom_counts), do: map_of_atom_counts | |
def word_count([head|tail], map_of_atom_counts) do | |
word_count(tail, Map.put(map_of_atom_counts, head, Map.get(map_of_atom_counts, head, 0) + 1)) | |
end |
This file contains 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
import Html exposing (Html, text, input, div) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput) | |
import String | |
main = Html.program { init = init, | |
view = view, update = update, subscriptions = \_ -> Sub.none } | |
-- Model |
This file contains 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
import Html exposing (Html, text, div) | |
import Mouse exposing (..) | |
main = Html.program { init = init, | |
view = view, update = update, subscriptions = subscriptions } | |
-- Model | |
type alias Model = { x: Int, y : Int } |
NewerOlder