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
Beep Boop Beep, I'm a computer. |
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
// An anonymous function written in lambda syntax: | |
x => x + 1 | |
val func = x => x + 1 | |
func(3) // returns 4 | |
// In this case, the lambda `x => x + 1` relies on NO external data. | |
// It's fundamentally complete. X is provided as an argument to the 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
fontFamilyHeading : string | |
fontFamily : string | |
fontSizeTiny : int | |
fontSizeExtraSmall : int | |
fontSizeSmall : int | |
fontSizeMedium : int | |
fontSizeLarge : int | |
fontSizeExtraLarge : int | |
fontSizeHuge : int | |
itemSizeExtraSmall : float |
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
com_android_browser | |
graphic-avatar-text-back | |
graphic-background | |
graphic-bootloader-usb-wakeup | |
graphic-busyindicator-large-background | |
graphic-busyindicator-large | |
graphic-busyindicator-medium-background | |
graphic-busyindicator-medium | |
graphic-busyindicator-small | |
graphic-button |
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 RFC: Instance Reference Sugar ====== | |
* Version: 0.2 | |
* Date: 2015-03-09 | |
* Author: Shawn McCool, shawn@heybigname.com | |
* Status: In Discussion | |
===== Summary ===== | |
In order to access instance variables and methods, one must use the `$this->` prefix. |
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 | |
namespace PrivateExample { | |
class Animal { | |
private $innermostFeelings = "HUNGER"; | |
public function __construct() { | |
echo "Animal feels $this->innermostFeelings\n"; | |
} | |
public function empathy(Animal $other) { |
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
using System.Collections.Generic; | |
using Infrastructure; | |
using NUnit.Framework; | |
namespace Collections { | |
[TestFixture] public class SeqTests { | |
[Test] | |
public void can_access_the_head() { | |
var seq = new Seq<DomainEvent>(); | |
var first = new TestEvent(); |
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 | |
# Discussion about idiomatic ActiveRecord usage | |
## Please help me to determine the idiomatic approach for creating a member and attaching an invoice ONLY IF the member doesn't already have 5 invoices. | |
class Member extends Eloquent { | |
} | |
$member = Member::create([ |
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
<snippet> | |
<content><![CDATA[ | |
<div class="clearfix"> | |
<label for="$1">$2</label> | |
<div class="input"> | |
<?=form_input('$1', set_value('$1'))?> | |
</div> | |
</div> | |
]]></content> | |
<tabTrigger>formtext</tabTrigger> |
OlderNewer