Keep first n-1 digits the same, last digit is free to increment to some arbitrary value
~>1: >=1.0.0 <2.0.0
~>1.0: >=1.0.0 <2.0.0
~>1.2.3: >=1.2.3 <1.3.0
~>0.1: >=0.1.0 <1.0.0
~>0.1.3: >=0.1.3 <0.2.0
import ReactDOM from 'react-dom'; | |
import React, { useState, useCallback, useEffect } from 'react'; | |
import { useQuery } from '@apollo/client'; | |
import { gql } from '@apollo/client'; | |
const CASE_FIELDS = ` | |
id | |
referralDate | |
caseNumber |
var cradle = require('cradle'); | |
var crypto = require('crypto'); | |
cradle.setup({ | |
host: 'foo.cloudant.com', | |
port: 80, | |
cache: false, | |
timeout: 5000 | |
}) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// generated on http://momentjs.com/timezone/data/ | |
// Selected timezones: Asia > All, America > All, Europe > All | |
moment.tz.add({ | |
"zones": { | |
"America/Adak": [ | |
"12:13:21 - LMT 1867_9_18 12:13:21", | |
"-11:46:38 - LMT 1900_7_20_12 -11:46:38", | |
"-11 - NST 1942 -11", | |
"-11 US N%sT 1946 -11", |
A simple widget that's capable of displaying time for multiple locations around the world. In our company(neo), we use it to display time in different offices.
Dashing widget to display first two coming-up Google Calendar events.
Basically, you do not need more than two events on your dashboard, but it can be easily extended to the neighboring cells and show, say, 4 events instead of 2.
# spec/support/rspec-rails/controller-example-group.rb | |
module RSpec::Rails | |
module ControllerExampleGroup | |
def process *args | |
@requested = true | |
super | |
end | |
def self.included(base) |
require "active_record" | |
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") | |
ActiveRecord::Schema.define do | |
create_table :languages do |t| | |
t.string :type | |
end | |
end |