Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View imajes's full-sized avatar

James Cox imajes

View GitHub Profile
%s=0x%llx
KMGTBb
"%@" doesn't exist in entry "%@"
"%@" is not a valid data criterion
"%@" of entry "%@" is class %@ while expecting BOOL<NSNumber>
"%@" of entry "%@" is class %@ while expecting NSData
"%@" of entry "%@" is class %@ while expecting NSNumber
"%@" query failed in internal service!
"%@" query failed!
"%@" query is not successfully from internal service
-- new table bloat query
-- still needs work; is often off by +/- 20%
WITH constants AS (
-- define some constants for sizes of things
-- for reference down the query and easy maintenance
SELECT current_setting('block_size')::numeric AS bs, 23 AS hdr, 8 AS ma
),
no_stats AS (
-- screen out table who have attributes
-- which dont have stats, such as JSON
## requires the 'terminal-table' gem
RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
config.before(:suite) do
# prep factory_run tracking
FactoryBot::Analytics.track_factories
end
version: '3'
networks:
int-service-proxy:
external: true
services:
watchtower:
container_name: watchtower
restart: unless-stopped
using UnityEngine;
using System.Collections;
using System.Web;
public class GoogleMap : MonoBehaviour
{
IEnumerator _Refresh ()
{
var url = "http://maps.googleapis.com/maps/api/staticmap";

Keybase proof

I hereby claim:

  • I am imajes on github.
  • I am imajes (https://keybase.io/imajes) on keybase.
  • I have a public key whose fingerprint is BF0D A9F4 956B 955B FC4D 9B2F 12A3 0FC2 9D04 5EF5

To claim this, I am signing this object:

Given these relationships:

User

  has_many :queue_items
  has_many :things, through: :queue_items


QueueItem
module CMS::Orderable
extend ActiveSupport::Concern
def order_scope
if self.class.order_scope && (scoped = send(self.class.order_scope))
scoped.send(self.class.model_name.collection)
else
self.class
end
end
@imajes
imajes / calc.rb
Created September 23, 2014 20:11
def calculate(str)
end
calculate("4+5") # 9
calculate("10+8+2") # 20
calculate("10-5") # 5
calculate("10+2-4") # 8