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
struct MyView: View { | |
@State var dep1 = ... | |
@State var dep2 = ... | |
@State var cachedProperty = ... | |
var body: some View { | |
SomeView() | |
.task(id: "\(dep1)-\(dep2)") { | |
// Do expensive calculations... |
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
FROM ruby:2.6.3 | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends python-pip | |
RUN pip install Pygments | |
RUN gem install jekyll:2.5.3 rdiscount kramdown titlecase | |
ENV JEKYLL_HOME /data | |
RUN addgroup jekyll --gid 500 && mkdir -p $JEKYLL_HOME && \ |
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
// Fix gist widget displays | |
.gist table { | |
table-layout: auto; | |
margin: 0; | |
} |
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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
var v = "1.0."+(new Date()).getTime(); | |
var iDB = window.webkitIndexedDB || window.mozIndexedDB; | |
var oReq = iDB.open("myDB"); | |
oReq.onsuccess = function(event) { | |
db = event.result || event.target.result; | |
var vReq = db.setVersion(v); | |
console.log(vReq); | |
vReq.onsuccess = function(e) { |
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
<link rel="stylesheet" type="text/css" href="/style/screen.css" media="screen"/> | |
<!-- [if lte IE 6]> | |
<link rel="stylesheet" type="text/css" href="/style/iefix_screen.css" media="screen"/> | |
<![endif]--> |
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
.container { | |
width: 420px; | |
} | |
.content { | |
border: solid 10px #3570d6; | |
background: white url( background_invert.gif ) left center no-repeat; | |
} | |
.left { | |
float: left; | |
width: 200px; |
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
var PhotoSelector = Class.create(); | |
PhotoSelector.prototype = { | |
initialize: function( name ) { | |
var init = new Benchmark(); | |
init.start(); | |
console.debug( "Beginning Initialization!" ); | |
this.old = 0; | |
var totals = { | |
fourby: $("fourby"), |
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
var Aspect = Class.create(); | |
Aspect.prototype = { | |
initialize: function( clazz, before, after ) { | |
var members = Object.keys( clazz.prototype ); | |
members.each( | |
function( name ) { | |
if( Object.isFunction( clazz.prototype[name] ) ) { | |
var oldName = "old_" + name; | |
clazz.prototype[oldName] = clazz.prototype[name]; | |
clazz.prototype[name] = function() { |
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
Event.observe( window, "load", | |
function(e) { | |
$$('.lightwindow').each( | |
function( elem ) { | |
if( elem.href ) { | |
if( elem.href.indexOf('?') == -1 ) { | |
elem.href += '?'; | |
} | |
elem.href += "lightwindow=true"; | |
} |
NewerOlder