- https://hochgatterer.me/hkcam/ - camera
- https://github.com/Gruppio/Sonoff-Homekit - switch
- https://github.com/bredikhin/homekit-compatible-temperature-and-humidity-sensor - temperature and humidity sensor
| export const richTextToRelayRecordProxy = (bodyRichText, store) => { | |
| const bodyRichTextId = 'client:RichText:' + tempID++; | |
| const bodyRichTextRecord = store.create(bodyRichTextId, 'RichText'); | |
| bodyRichTextRecord.setValue(bodyRichText.text, 'text'); | |
| bodyRichTextRecord.setValue(bodyRichText.html, 'html'); | |
| const { contentState } = bodyRichText; | |
| if (contentState) { | |
| const contentStateId = 'client:DraftContentState:' + tempID++; |
| module Pod | |
| class LocalDependenciesSource < Source | |
| attr_reader :sandbox | |
| attr_reader :local_podspecs_by_name | |
| def self.register(plugin_name, sandbox, local_podspec_dependencies) | |
| return unless local_podspec_dependencies | |
| # Register a source that can be used to provide local podspecs | |
| HooksManager.register(plugin_name, :source_provider) do |context| |
| require "./src/sidekiq" | |
| `redis-cli flushdb` | |
| class LoadWorker | |
| include Sidekiq::Worker | |
| perform_types Int64 | |
| def perform(idx) | |
| end |
Related blog post:
http://artsy.github.io/blog/2015/12/09/docker-for-development/
Reasons for using docker:
docker-compose.yml file can provide the related services and environment variables an application needs.| // Copyright 2004-present Facebook. All Rights Reserved. | |
| 'use strict'; | |
| var SourceMapConsumer = require('source-map').SourceMapConsumer; | |
| var fs = require('fs'); | |
| var argv = process.argv.slice(2); | |
| if (argv.length < 2) { | |
| console.error('Usage: ' + __filename + ' <source-map-file> <lineNumber> [column]'); | |
| process.exit(1); |
| #!/usr/bin/env ruby | |
| require 'pathname' | |
| code_files = ARGV | |
| code_files.each do |file| | |
| file = Pathname(file) | |
| contents = file.read | |
| contents.gsub!(/(^#import .*\n)+/) do |imports| | |
| imports = imports.split("\n") | |
| imports.sort.uniq.join("\n") << "\n" |
| #!/bin/sh | |
| PLIST_BUDDY=/usr/libexec/PlistBuddy | |
| function add_id { | |
| "$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $1" "$2" | |
| } | |
| function has_id { | |
| read_id DVTPlugInCompatibilityUUIDs *Info.plist|grep -q "$1" |
I'm definitely not looking for work. However to provide some helpful guidance for hiring like-minded engineers, I would only consider working for a company if it met these requirements: