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
diff --git a/assets/css/app.css b/assets/css/app.css | |
index 1316bc4..d34f635 100644 | |
--- a/assets/css/app.css | |
+++ b/assets/css/app.css | |
@@ -1,5 +1,6 @@ | |
@import "tailwindcss/base"; | |
@import "../../deps/petal_components/assets/default.css"; | |
+@import "../../deps/petal_framework/assets/css/combo-box.css"; | |
@import "tailwindcss/components"; | |
@import "tailwindcss/utilities"; |
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
mix test --cover | |
Excluding tags: [:feature, :petal_framework] | |
......................................................................................................................................................................................................... | |
Finished in 3.1 seconds (1.3s async, 1.7s sync) | |
7 doctests, 3 features, 195 tests, 0 failures, 4 excluded | |
Randomized with seed 300907 | |
---------------- | |
COV FILE LINES RELEVANT MISSED |
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
# posting for reference in https://forums.linuxmint.com/viewtopic.php?f=46&t=272966 | |
Jul 11 20:33:42 mint ubiquity[1988]: Device /dev/nvme0n1p3 not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device free not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device /dev/nvme0n1p6 not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device /dev/nvme0n1p7 not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device free not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device /dev/nvme0n1p8 not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device /dev/nvme0n1p4 not found in os-prober output | |
Jul 11 20:33:42 mint ubiquity[1988]: Device free not found in os-prober output |
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
curl -X GET \ | |
'https://slack.com/api/files.list?token=REMOVED&page=1&types=&channel=' \ | |
-H 'Cache-Control: no-cache' \ | |
-H 'accept: application/json, text/plain, */*' \ | |
-H 'accept-encoding: gzip, deflate, br' \ | |
-H 'accept-language: en-US,en;q=0.9,de;q=0.8' \ | |
-H 'authority: slack.com' \ | |
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36' |
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
POST /api/midgardur/v4/reservations HTTP/1.1 | |
Host: booking.prod.wowair.net | |
Origin: https://booking.wowair.com | |
Accept-Encoding: gzip, deflate, br | |
Accept-Language: en-US,en;q=0.9,de;q=0.8 | |
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 | |
Content-Type: application/json | |
Accept: application/json | |
Referer: https://booking.wowair.com/passengers | |
Connection: keep-alive |
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
# Overriding ActionDispatch::Integration::Session.any_instance.process | |
# Adding a body and passing to rack-test as an :input param. | |
module ActionDispatch | |
module Integration | |
class Session | |
#add body param here | |
def process(method, path, params: nil, body: nil, headers: nil, env: nil, xhr: false, as: nil) | |
request_encoder = RequestEncoder.encoder(as) | |
headers ||= {} |
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
import Ember from 'ember'; | |
import Serializer from '../serializers/author'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
serialized: Ember.computed(function() { | |
return JSON.stringify(this.get('model').serialize(), null, 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
module Humanize | |
SUB_ONE_THOUSAND = { | |
:en => ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen', 'twenty', 'twenty-one', 'twenty-two', 'twenty-three', 'twenty-four', 'twenty-five', 'twenty-six', 'twenty-seven', 'twenty-eight', 'twenty-nine', 'thirty', 'thirty-one', 'thirty-two', 'thirty-three', 'thirty-four', 'thirty-five', 'thirty-six', 'thirty-seven', 'thirty-eight', 'thirty-nine', 'forty', 'forty-one', 'forty-two', 'forty-three', 'forty-four', 'forty-five', 'forty-six', 'forty-seven', 'forty-eight', 'forty-nine', 'fifty', 'fifty-one', 'fifty-two', 'fifty-three', 'fifty-four', 'fifty-five', 'fifty-six', 'fifty-seven', 'fifty-eight', 'fifty-nine', 'sixty', 'sixty-one', 'sixty-two', 'sixty-three', 'sixty-four', 'sixty-five', 'sixty-six', 'sixty-seven', 'sixty-eight', 'sixty-nine', 'seventy', 'seventy-one', 'seventy-two', 'seventy-three', 'seventy-four', 'seventy-five |
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
# psudeo code for how I might build a 1password => lastpass converter | |
# this is done becuase lastpasse's importer seems to ingore many fields. | |
# Usage: | |
# OnePasswordCsv.new( | |
# input_csv_path: 'exported_admin_folder_from_1password.csv', | |
# output_csv_path: 'lastpass_admin_import.csv' | |
# ) | |
class OnePasswordCsv |
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
# JSON-API mocking library - a very, very simple script to help mock JSON-API | |
# JSON. This is more designed to return scaffolding that can then be manually | |
# edited. It supports only single resource objects, with included or linked | |
# children, but only one child per relationship. This might be useful for | |
# specing out what your API could look like for frontend and backend developers. | |
# Example usage is at the bottom. If I were to take this further, I'd make it | |
# more recursive. | |
class JsonApiMock |
NewerOlder