Skip to content

Instantly share code, notes, and snippets.

View dpogue's full-sized avatar
👨‍💻
I may be slow to respond.

Darryl Pogue dpogue

👨‍💻
I may be slow to respond.
View GitHub Profile

CSS Grid

On Tuesday, CSS Grid will be live in all modern browsers

Terminology

  • Container: An element that contains a grid (display: grid)
@dpogue
dpogue / index.html
Created September 19, 2017 16:33
Test case HTML for UIWebView safe-area-inset updates after rotation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, width=device-width, viewport-fit=cover">
<title>Hello World</title>
<style>
html {
font: -apple-system-body;
}
@dpogue
dpogue / index.html
Created September 10, 2017 04:23
Cordova iOS WKWebView footer positioning example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, width=device-width, viewport-fit=cover">
<title>Hello World</title>
<style>
html {
font: -apple-system-body;
}
@dpogue
dpogue / ar-bug-repro.rb
Created August 18, 2017 17:35
Standalone example showing ActiveRecord generating invalid SQL statements when trying to generate a cache key for a collection that involves joining.
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
@dpogue
dpogue / ios11-bugs.md
Last active September 14, 2017 00:32

Ruby is Object-Oriented (to a level you probably haven't seen before)

Everything in Ruby is an object:

  • "hello" is an instance of the String class.
  • 3.0 is an instance of the Float class.
  • String is an instance of the Class class (yes, classes are objects too)

Every object has some useful methods to help when starting out:

  • .to_s to convert to a string
  • .inspect to get a string showing the internal state of an object
<platform name="ios">
<icon src="res/ios/icon-60.png" width="60" height="60" />
<icon src="res/ios/icon-60-2x.png" width="120" height="120" />
<icon src="res/ios/icon-60-3x.png" width="180" height="180" />
<icon src="res/ios/icon-76.png" width="76" height="76" />
<icon src="res/ios/icon-76-2x.png" width="152" height="152" />
<icon src="res/ios/icon-40.png" width="40" height="40" />
<icon src="res/ios/icon-40-2x.png" width="80" height="80" />
<icon src="res/ios/icon.png" width="57" height="57" />
<icon src="res/ios/icon-2x.png" width="114" height="114" />
* Bulleted list item
Some more stuff in the same item
```
code block within the same item
```
* Another bullet item

Visibility Control in Plasma

There are several mechanisms for controlling the visibility of objects in Plasma, both for artistic and technical/performance reasons. This is a (non-exhaustive) list of them.

FadeOpacityMod

This modifier will cause an object to fade its opacity when the centre of the object is behind other geometry. It can be used for some cool artistic effects, but probably has no significant impact on performance.

In korman this is an "Opacity Fader (Line of Sight)".

Found PythonLibs: /usr/lib64/libpython3.6m.so (found version "3.6.0")
Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6", minimum required is "3.6.0")
CMake Error at Python/CMakeLists.txt:7 (message):
Versions of Python libraries (3.6.0) and Python interpreter (3.6) do not
match. Please configure the paths manually.