<?php
$x = false or true;
// => true
var_export($x);
// => false
$y = false || true;
// => true
var_export($y);
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 | |
class TimeZones { | |
/** | |
* @return array | |
*/ | |
public function generate() | |
{ | |
$identifiers = DateTimeZone::listIdentifiers(); |
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
// https://twitter.com/ReactJSTraining/status/743567989434286080 | |
// https://codepen.io/ReactJSTraining/pen/MeePdW?editors=0010 | |
const { render, findDOMNode } = ReactDOM | |
//////////////////////////////////////////////////////////// | |
// Only code you need to change is inside this component | |
class PinToBottom extends React.Component { | |
static propTypes = { |
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 | |
class Category extends Eloquent { | |
use EloquentSingleTableInheritenceTrait; | |
protected function singleTableInheritanceMpa() | |
{ | |
return [ | |
1 => 'InventoryCategory', |
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
// note there may be a better way to abuse flexbox than this :) | |
var React = require('react-native') | |
var { View, TextInput } = React | |
var BorderedInput = React.createClass({ | |
getInitialState() { | |
return { i: 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
export type Options = { | |
blockSelector: () => string, | |
linkSelector: (id: string) => string, | |
classToToggle?: () => string, | |
toggleClass?: (el: Element, isInView: boolean, classToToggle: string) => void, | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="main"></div> |
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
wget https://www.successphotography.com/traceimagefreepp.php?gpr=131196571000{1..9}&gpi= && \ | |
wget https://www.successphotography.com/traceimagefreepp.php?gpr=13119657100{10..99}&gpi= && \ | |
wget https://www.successphotography.com/traceimagefreepp.php?gpr=1311965710{100..342}&gpi= |
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/sh | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |
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
/* | |
run with: | |
portsmouthClassifier.classify(marks); | |
*/ | |
var portsmouthClassifier = (function() { | |
var totalCredits = function(year) { | |
return _.reduce(year, function(memo, unit) { | |
return memo + unit.credits; |