Name | Description | Exceptions |
---|---|---|
Avoid async void | Prefer async Task methods over async void methods | Event handlers |
Async all the way | Don't mix blocking and async code | Console main method |
Configure context | Use ConfigureAwait(false) when you can |
Methods that require context |
This file contains 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 app_path | |
unless @app_path | |
git_root = `git rev-parse --show-toplevel`.chomp | |
@app_path = $?.success? ? git_root : Dir.pwd | |
end | |
@app_path | |
end | |
class Exception |
This file contains 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
SELECT procpid as pid, | |
usename as user, | |
datname as db, | |
application_name as app, waiting as wait, current_query as query | |
FROM pg_stat_activity | |
WHERE datname <> 'postgres'; |
This file contains 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
#include <Adafruit_NeoPixel.h> | |
#define PIN 6 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(200, PIN, NEO_GRB + NEO_KHZ800); | |
uint16_t pos = 0; | |
int tail = 20; | |
void setup() { |
This file contains 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
#!/usr/bin/env ruby | |
# Backs up the mounted EBS RAID storage used by Couchbase of an EC2 instance using the Scalarium API. | |
# | |
# Before running the snapshot it stops Couchbase disk writes and then freezes the file system. | |
# File system must be XFS. | |
# | |
# Usage: Backup.new(<scalarium api token>, <mount point for ebs raid>, <name of couchbase bucket to back up>).start (must be run on the EC2 instance). | |
require 'rest_client' |
This file contains 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
In shell: | |
export RUBYLIB=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/rb/testing/patch/bdd | |
spring rspec spec/ # to launch spring server | |
In Rubymine: | |
Uncheck bundler | |
Select custom runner script as spring_rspec.rb | |
add same variable to environment variables: | |
RUBYLIB=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/rb/testing/patch/bdd |
This file contains 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 sys | |
import requests, bs4 | |
import json | |
from collections import namedtuple | |
JishoSentence = namedtuple('JishoSentence', ['jp', 'en']) | |
JishoLookup = namedtuple('JishoLookup', ['json', 'sentences']) | |
def ac_text(action, params): | |
json_ins = None |
This file contains 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
#!/bin/bash | |
# by http://github.com/jehiah | |
# this prints out some branch status (similar to the '... ahead' info you get from git status) | |
# example: | |
# $ git branch-status | |
# dns_check (ahead 1) | (behind 112) origin/master | |
# master (ahead 2) | (behind 0) origin/master | |
tot_diff=0 |
This file has been truncated, but you can view the full file.
This file contains 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
Home Welcome to the Open Dental Query Examples Page | |
These query examples were written for other practices, usually for a specific purpose. There may be additional changes needed to return the results you want. | |
Queries are sorted chronologically, with queries written for older versions listed first and queries written for newer versions listed last. | |
We recommend looking at higher numbered queries first, because older queries may not work in new versions. | |
If you find a query you like, copy/paste the query into Open Dental to run it. See User Queries | |
If needed, change any required variables before running. Look at the query comments for variable descriptions. | |
If you need help finding a query, modifying a query, or would like a custom query, fill out and submit a Query Request Form |
This file contains 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
const int c = 261; | |
const int d = 294; | |
const int e = 329; | |
const int f = 349; | |
const int g = 391; | |
const int gS = 415; | |
const int a = 440; | |
const int aS = 455; | |
const int b = 466; | |
const int cH = 523; |
OlderNewer