- 1Password - https://1password.com/
- Amphetamine - https://apps.apple.com/tr/app/amphetamine/id937984704
- AppCleaner - https://freemacsoft.net/appcleaner/
- KeyCastry - https://github.com/keycastr/keycastr
- Habitify - https://www.habitify.me/
- Notion - https://www.notion.so/
- Postman - https://www.getpostman.com/
- Alfred - https://www.alfredapp.com/
The HyperLogLog (HLL) algorithm is a probabilistic data structure used for approximating the number of distinct elements in a multiset while using significantly less memory compared to exact methods Source 3. It is an extension of the earlier LogLog algorithm and derives from the 1984 Flajolet–Martin algorithm Source 3.
The main idea behind the HLL algorithm is to estimate the cardinality of a set by observing the maximum number of leading zeros in the binary representation of each number in the set Source 0. To achieve this, the following steps are taken:
-
Apply a hash function to each element in the original multiset to obtain a multiset of uniformly distributed random numbers with the same cardinality as the original multiset Source 3.
-
Split the multiset into multiple subsets (bu
import Controller from '@ember/controller'; | |
import { isEmpty } from '@ember/utils'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
xxx = isEmpty(undefined) ? 1 : 2; | |
} |
network_SSID="$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -e "s/^ *SSID: //p" -e d)" | |
phone_name="Ogulcan's Phone" | |
if [ $network_SSID = phone_name ]; then | |
echo true | |
else | |
echo false | |
fi |
{ | |
"app/initializers/*.js": { | |
"type": "initializer" | |
}, | |
"app/models/*.js": { | |
"type": "model", | |
"alternate": "app/adapters/{}.js", | |
}, | |
"app/adapters/*.js": { | |
"type": "adapter", |
- Mobiledoc - https://github.com/bustle/mobiledoc-kit - framework to build editors with a standardized JSON structure
- Substance - http://substance.io - library for building editors and publishing systems
- ShareDB - https://github.com/share/sharedb - framework to sync any JSON document using operational transforms, add real-time collaborative editing to anything else
These use separate document structures instead of HTML, some are more modular libraries than full editors
- ProseMirror - http://prosemirror.net - supports collaborative editing, offers similar options to Mobiledoc for data structure
module GivenWhenThen | |
module ClassMethods | |
def def_Given(name, *args, &block) | |
_gwt_define(:Given, name, *args, &block) | |
end | |
def def_When(name, *args, &block) | |
_gwt_define(:When, name, *args, &block) | |
end |
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
# Activate the gem you are reporting the issue against. |
rspec `git ls-files --modified --others spec` |
I originally wrote this article for Codementor in October 2014. It should have something for everyone, from fairly new git users to experienced developers.
Sometimes the best way to get a feel for a problem is diving in and playing around with the code. Unfortunately, the changes made in the process sometimes turn out to be less than optimal, in which case reverting the file to its original state can be the fastest and easiest solution:
git checkout -- Gemfile # reset specified path
git checkout -- lib bin # also works with multiple arguments