- Start mongo docker run --name db mongo
- Kitematic: show container
- Docker hub: mongo, Dockerfile
- Attach
- docker exec -it --rm db /bin/bash
- mongo
- use test, db.items.insert({}), db.items.find()
- From outside
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
#!/usr/bin/python | |
# Example file with custom commands, located at /magical/commands/example.py | |
import lldb | |
import fbchisellldbbase as fb | |
def lldbcommands(): | |
return [ JSON() ] | |
class JSON(fb.FBCommand): |
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
#!/usr/bin/env ruby | |
require 'set' | |
files = `find . -name Localizable.strings`.split("\n") | |
# Builds a list of keys | |
keys = Set.new | |
MATCH_FORMAT = /\"(.*)\"[ ]*=[ ]*\".*\"/ | |
files.each do | file | |
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
{ | |
"type": "IndoorMapBottomSheet", | |
"content": { | |
"id": "building-1", | |
"title": "Gebäude Eins", | |
"blocks": [ | |
{ | |
"type": "Text", | |
"text": "Sehr schön!", | |
"id": "c05d0f9b-b0c2-4e4d-8832-da49e8630d7a" |
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
{ | |
"id": "Boxenstopp", | |
"title": "Boxenstopp", | |
"description": "The coffee bar is located in the foyer of the Porsche Museum. You can enjoy a peaceful cup of coffee here or refuel with a quick snack before your visit to the museum.", | |
"blocks": [ | |
{ | |
"type": "Text", | |
"text": "NAVIGATE hilft Ihnen sich zurecht zufinden. Klicken Sie hierzu auf den entsprechenden Punkt in der Karte oder wählen Sie aus der unten stehenden Liste direkt aus.", | |
"id": "1b254825-e8af-4f5c-9434-8f2091c2157c" | |
}, |
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
protocol TestDelegate: class { | |
} | |
protocol TestProtocol { | |
weak var delegate: TestDelegate? { get } | |
} | |
class Test { | |
weak var delegate: TestDelegate |
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 | |
for file in $(find . -name "*imageset" | xargs -IX basename "X" | sed s/".imageset"//); do | |
grep --exclude-dir=Resources/Assets.xcassets --exclude-dir=Resources/CustomAssets.xcassets -c $file * -R > /dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "Could not create find $file" | |
fi | |
done |
List of book recommendation on twitter Main threads:
Name | Author | Recommended by |
---|---|---|
A Wild Sheep Chase: A Novel | Haruki Murakami | ayaka |
Norwegian Wood | Haruki Murakami | chriseidhof |
Letters from a Stoic | Seneca | chriseidhof |
Suppose I have the following scenario
// In my .h
@interface TestClass
@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
IDEBundleInjection.c: Error 3587 loading bundle '/Users/dbarden/Library/Developer/Xcode/DerivedData/wormhole-aibeploggrzlsdfidrlrpzhkjcxu/Build/Products/Debug-iphonesimulator/wormholeTests.xctest': The bundle “wormholeTests” couldn’t be loaded because it is damaged or missing necessary resources. | |
DevToolsBundleInjection environment: | |
XCInjectDiagnostics: (null) | |
XCInjectBundleInto: /Users/dbarden/Library/Developer/Xcode/DerivedData/wormhole-aibeploggrzlsdfidrlrpzhkjcxu/Build/Products/Debug-iphonesimulator/wormhole.app/wormhole | |
XCInjectBundle: /Users/dbarden/Library/Developer/Xcode/DerivedData/wormhole-aibeploggrzlsdfidrlrpzhkjcxu/Build/Products/Debug-iphonesimulator/wormholeTests.xctest | |
TestBundleLocation: /Users/dbarden/Library/Developer/Xcode/DerivedData/wormhole-aibeploggrzlsdfidrlrpzhkjcxu/Build/Products/Debug-iphonesimulator/wormholeTests.xctest | |
TMPDIR: /Users/dbarden/Library/Developer/CoreSimulator/Devices/3E6E19F3-2D15-4379-A230-EECB57B779F0/data/Containers/Data/Application/E3C37902-7685-4CBE-899B-B7FCA6 |
NewerOlder