Communication seems to be a common weak link when working remotely. Being diligent with documentation helps get thoughts in a place where others can consume them. Speaking concisely and directly helps avoid miscommunications. I think it's also essential to know when asynchronous communication starts to break down or be less effective than a video or phone call.
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
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
# Use local changes or ActiveAdmin master. | |
if ENV["ACTIVE_ADMIN_PATH"] | |
gem "activeadmin", path: ENV["ACTIVE_ADMIN_PATH"], require: false | |
else |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='UTF-8'> | |
<title>RandoRaptor</title> | |
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' /> | |
<style> | |
:root { | |
--color1: #253b76; | |
--color2: #24366c; |
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
function factorial(factor) { | |
let currentResult = factor; | |
// Start at 1 loop to 3 | |
for (let index = 1; index < factor; index++) { | |
let previousValue = currentResult; | |
currentResult = previousValue * (factor - index); | |
} |
Mobile uses a service called Smartling to handle most of the translating.
https://www.smartling.com/why-smartling/
We organize all of our english based text into yaml files. Smartling takes those english files and produces more files that correspond to each of the languages that we support.
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 { Pipe, PipeTransform } from '@angular/core'; | |
import { TranslationService } from './shared/services/translation.service'; | |
@Pipe({ | |
name: 'translate' | |
}) | |
export class TranslationPipe implements PipeTransform { | |
constructor( | |
private translationService: TranslationService |
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 { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
import { environment } from 'src/environments/environment'; | |
import { RuntimeService } from './runtime.service'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class TranslationService { | |
private data: Map<string, string>; |
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
def build_hash(a, b) | |
h = {} | |
h[:a] = a | |
h[:b] = b | |
h | |
end | |
def build_hash(a, b) | |
{}.tap.do |h| | |
h[:a] = a |