Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| package com.betterment.common; | |
| import java.net.URL; | |
| import java.util.Arrays; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import org.reflections.vfs.Vfs; | |
| import com.google.common.collect.Lists; |
| from Foundation import NSKeyedUnarchiver | |
| from struct import unpack | |
| # This entire function is black magic of the highest order and I'll blog about it later | |
| def extract_share(bookmark_data): | |
| content_offset, = unpack('I', bookmark_data[12:16]) | |
| first_TOC, = unpack('I', bookmark_data[content_offset:content_offset+4]) | |
| first_TOC += content_offset | |
| TOC_len, rec_type, level, next_TOC, record_count = unpack('IIIII', bookmark_data[first_TOC:first_TOC+20]) | |
| TOC_cursor = first_TOC + 20 |
| # this is a sample .curlrc file | |
| # https://everything.curl.dev/ is a GREAT RESOURCE | |
| # store the trace in curl_trace.txt file. beware that multiple executions of the curl command will overwrite this file | |
| --trace curl_trace.txt | |
| # store the header info in curl_headers.txt file. beware that multiple executions of the curl command will overwrite this file | |
| --dump-header curl_headers.txt | |
| #change the below referrer URL or comment it out entirely |
| # On slow systems, checking the cached .zcompdump file to see if it must be | |
| # regenerated adds a noticable delay to zsh startup. This little hack restricts | |
| # it to once a day. It should be pasted into your own completion file. | |
| # | |
| # The globbing is a little complicated here: | |
| # - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
| # - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
| # - '.' matches "regular files" | |
| # - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
| autoload -Uz compinit |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| import Foundation | |
| /** | |
| Set FourCharCode/OSType using a String. | |
| Examples: | |
| let test: FourCharCode = "420v" | |
| let test2 = FourCharCode("420f") | |
| print(test.string, test2.string) | |
| */ |
| private static boolean overlap(final String net1, final String net2) | |
| { | |
| SubnetInfo subnet1 = new SubnetUtils(net1).getInfo(); | |
| SubnetInfo subnet2 = new SubnetUtils(net2).getInfo(); | |
| int mask1 = subnet1.asInteger(subnet1.getNetmask()); | |
| int mask2 = subnet2.asInteger(subnet2.getNetmask()); | |
| int maskToUse = mask1 < mask2 ? mask1 : mask2; | |
| int addr1 = subnet1.asInteger(subnet1.getAddress()) & maskToUse; |
| when(). | |
| get(getDriverListFor2016). | |
| then(). | |
| body("findAll{Drivers->Drivers.permanentNumber >= '%s' && Drivers.permanentNumber <= '%s' }.permanentNumber", | |
| withArgs(lowerLimit, upperLimit), allOf(hasItem(inCollection), not(hasItem(notInCollection)))); |
| when(). | |
| get(getDriverListFor2016). | |
| then(). | |
| body("findAll{Drivers->Drivers.permanentNumber >= '%s' && Drivers.permanentNumber <= '%s' }.permanentNumber", withArgs(lowerLimit", upperLimit), hasItem(inCollection)). | |
| body("findAll{Drivers->Drivers.permanentNumber >= '%s' && Drivers.permanentNumber <= '%s' }.permanentNumber", withArgs(lowerLimit, upperLimit), not(hasItem(notInCollection))); |
| when(). | |
| get(getDriverListFor2016). | |
| then(). | |
| root("findAll{Drivers->Drivers.permanentNumber >= '%s' && Drivers.permanentNumber <= '%s' }.permanentNumber"). | |
| body(withArgs(lowerLimit, upperLimit), hasItem(inCollection)). | |
| body(withArgs(lowerLimit, upperLimit), not(hasItem(notInCollection))); |