This file contains hidden or 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 | |
/** | |
* Pluck an array of values from an array. | |
* | |
* @param array $array | |
* @param string $value | |
* @param string $key | |
* @return array | |
*/ | |
function array_pluck($array, $value = null, $key = null) |
This file contains hidden or 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 Spatial; | |
use CrEOF\Spatial\DBAL\Types\BinaryParser; | |
use CrEOF\Spatial\PHP\Types\Geometry\LineString; | |
use CrEOF\Spatial\PHP\Types\Geometry\Point; | |
class GeometryParser { |
This file contains hidden or 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
+ {% if field.type in app.extensions.getFields|keys %} | |
+ {% include 'custom/fields/' ~ field.type ~ '.twig' %} | |
+ {% endif %} |
This file contains hidden or 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 Spatial; | |
class Extension extends \Bolt\BaseExtension | |
{ | |
function info() | |
{ | |
$data = array( |
This file contains hidden or 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
iwconfig | |
IWCONFIG(8) Linux Programmer’s Manual IWCONFIG(8) | |
NAME |
This file contains hidden or 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 React = require('react'); | |
var GeoJsonEditor = require('./GeoJsonEditor'); | |
var LineStringEditor2 = require('./LineStringEditor2'); | |
var FancyLineStringEditor = React.createClass({ | |
propTypes: { | |
value: React.PropTypes.object, | |
onChange: React.PropTypes.func.isRequired | |
}, |
This file contains hidden or 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
'use strict'; | |
var fs = require('fs'); | |
var path = require('path'); | |
var _ = require('underscore'); | |
var exec = require('child-process-promise').exec; | |
var Compiler = require('traceur').NodeCompiler; | |
var traceurOptions = { | |
sourceMaps : 'inline', |
This file contains hidden or 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
# install wine 1.7 | |
add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.7 | |
# download steam | |
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe | |
# install some tricks | |
winetricks vcrun2010 |
This file contains hidden or 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
'use strict'; | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | |
var _nodeFetch = require('node-fetch'); | |
var _nodeFetch2 = _interopRequireDefault(_nodeFetch); | |
var _xml2js = require('xml2js'); |
This file contains hidden or 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 | |
find -mindepth 1 -maxdepth 1 -type d | while read -r dir; do cd $dir && printf "\n$dir\n++++++++++++++++++++++++++n\n"; $@; cd ..; done |