say you have two arrays, $a1
and $a2
, and you want to combine them.
<?php
$a1 = [
'a' => 'foo',
'b' => ['bar']
];
$a2 = [
'a' => 'bar',
import * as THREE from 'three' | |
window.THREE = THREE | |
import { GameObjects, Scene, Sound, Tilemaps, Geom, Math as PMath } from "phaser"; | |
import { Controller, Controls} from 'controls'; | |
import BaseLayer from "@layers/base" |
domain,name,keywords,description,twitter | |
walmartstores.com,Wal-Mart Stores,"SEC filing,Walmart photos,walmart stock,sustainability index,Wal-Mart,walmart annual reports,Walmart responsibility,executive speeches,walmart suppliers,global responsibility,walmart global sustainability report,walmart investors,Walmart interactive map,walmart history,privacy policy,financial reports,walmart news,Wal Mart,walmart sustainability,Walmart locations,Walmart videos,walmart story,Walmart,Walmart stores,walmart board of directors,community giving,walmart careers,Walmart jobs,sam walton","Find Walmart executive speeches, financial reports, press releases, downloadable photos and videos, and see an interactive map of our locations around the world.",walmart | |
gm.com,General Motors,,"General Motors is home to Buick, Cadillac, GMC and Chevrolet. Find the latest news about GM automotive innovations, investor relations and more. ",GM | |
ge.com,General Electric,,,generalelectric | |
chevron.com,ChevronTexaco,"cvx, chevrontexaco, cheveron, |
# v. 1.0 | |
# Originally posted here: https://www.reddit.com/r/excel/comments/339gw7/discussion_simplest_possible_way_to_get_this/ | |
# Use at your own discretion. | |
# Pax Per Scientiam | |
This is pretty much ripped directly from a posting I made on Reddit. I'm putting it here for posterity. Please note that I'm using the Excel 2011 (Mac) version of structured reference syntax, which I think is a bit different than that of Excel 2013 (Windows). | |
I've long wondered if there were a simpler way to get the relative row number of an Excel Table. | |
This has been my usual go to (refers to some table called "Table1" and some column therein called "column1"),which is entered into column1: |
' Useful Excel Worksheet formulas | |
' This is a living paste...stay tuned for more | |
' Unless otherwise state, assume Excel Table structured reference syntax. | |
' Whole Number Sequence | |
= [@counter] = 1+ROW()-ROW([counter]) | |
' Fixed-Divisor Modulo Numeric Cycle | |
' Reference: http://www.bennadel.com/blog/2240-creating-repeated-sequences-with-the-modulus-mod-operator.htm |
<?php | |
use Illuminate\Container\Container; | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
use Illuminate\Database\ConnectionResolverInterface; | |
use Illuminate\Database\Migrations\DatabaseMigrationRepository; | |
use Illuminate\Database\Migrations\MigrationRepositoryInterface; | |
use Illuminate\Database\Migrations\Migrator; | |
use Illuminate\Events\Dispatcher; |
say you have two arrays, $a1
and $a2
, and you want to combine them.
<?php
$a1 = [
'a' => 'foo',
'b' => ['bar']
];
$a2 = [
'a' => 'bar',
#!/usr/bin/env bash | |
declare -x GEM_HOME=/usr/local/ruby-lang/Gems | |
declare -x GEM_PATH=/usr/local/ruby-lang/Gems | |
if pmset -g batt | grep -Eo "Battery Power" | |
then | |
x=$(pmset -g batt | grep -Eo "\d+%" | cut -d% -f1) && [[ $x -lt 50 ]] && /usr/local/ruby-lang/Gems/bin/terminal-notifier -ignoreDnD -title "battery status" -message "low battery (${x}%)" | |
fi |
#!/usr/bin/env bash | |
unset CDPATH | |
PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/local/bin | |
function title () | |
{ | |
echo -ne "\033]0;"$*"\007" |
const path = require('path'); | |
function Req(base) { | |
this.base = base; | |
} | |
Req.prototype.get = function(module, opts) { | |
if (typeof require(path.resolve(this.base, module)) === 'function' && opts !== undefined) { | |
return require(path.resolve(this.base, module))(opts) | |
} else { |
GIF89aYw !ÿNETSCAPE2.0 !ù 9 , Y | |
+!.4&%$)!*#.16" 5&;4:2*(#(,4+2)$894+#3.293(3325D%:C0,B7<D87U)B;>B.9C;8Q?+CG,FS8FK;IR8QK:SV;TcBJ+A-"E8(D<4T;&S>2k7i<#C9@NMJB+HD8OX$JQ;WE)UH8XY%ZT:WeZc*oBkS5pj7GHFCLTKRJITYTLERNSWUHTZZHKjJYbF[pT\bV[vZb[KdgLfrZcdWjtYqm[sxfZJb^eidIgeXlp[yhGujWzuGzsYeigflqkqkjttsldslpvuivzv[rgmhyj}w|u}vx¡|;~D{yjlz uyxz®} ¹==!DR*i8¢\*¯l2 \AuRzk§zKÇz7~ <±> Yh x{ewfy§[¬j¸¢[¸£rÎ ;ÍKÅlÓ§Pɬvç°Uå³oØÌ\ÛÃxïÎ_éÌrùí{ ¨ ª³¦º¡ ¡¡¬£·¤¨¨·°¹¥¨¢§¥°·§²¬»±¸²§©¦¤«´«²¨¨µ¸²¤±®º¶¶¨·¸¶®Ã¢¨Âª¹Ä©¼Ô³¼Ä±»Ó»Á¹ÂÑ«Â̧ÇÖ®ÑÛ¶ÆɸÊÔ¼ÑÉ»ÑÙ¶Ûé½áíζ¼©å»ØÃËǵÝä¸éÌéدóæõé´ÈÉÆÄÍÓÌÒÊÅÕÛÑÎÄÓÎÑÖÕÉÜÜÛÌÛâÚâØÆæíÈéòÎðôØåæÑíòÐðïÔñôâÜÍâÞáïíÓååååíðêòëêóòðîåðîò÷÷éôôôÿ ñ H° Á*\È°¡Ã#JH±¢Å3jÜÈà¿A~Ä÷QdÉ(Sª\ɲ¥Ë0cÊI³¦Í8sêÜɳ§Ï@ | |
js`I#U8ò HO;JJẪX³jÝʵkÁ¦^ÃK¶¬Ù³h¡*ðiʶ-áK·®Ý»xóêÝË·¯_ HC~ûµ¡È´+^̸1GÂ#KL¹òbÈÝ¢ËéßÏ CMº´éÓAáļma£cËM» |