View readme
Lot of many people have problems (get errors, can't run commands, etc) with Laravel 5.4 Mix intallation.
I found a simple solution that's mostly works.
Just run (like in the documentation):
node -v
npm -v
npm install --no-bin-links
#if you get errors or can't run the "npm run dev" command
npm rebuild
npm run dev
View gist:24120aa119839c5f26f81a66525f588f
[00266.596] 01781.03547> [----------] Global test environment tear-down
[00266.598] 01781.03547> [==========] 1788 tests from 248 test cases ran. (258327 ms total)
[00266.600] 01781.03547> [ PASSED ] 1700 tests.
[00266.615] 01781.03547> [ FAILED ] 88 tests, listed below:
[00266.617] 01781.03547> [ FAILED ] StackTraceTest.TruncatedTrace
[00266.617] 01781.03547> [ FAILED ] EnvironmentTest.GetVar
[00266.617] 01781.03547> [ FAILED ] EnvironmentTest.HasVar
[00266.617] 01781.03547> [ FAILED ] FilePathTest.FromUTF8Unsafe_And_AsUTF8Unsafe
[00266.617] 01781.03547> [ FAILED ] FileTest.Append
[00266.617] 01781.03547> [ FAILED ] FileUtilProxyTest.Touch
View bash profile vars to set
Some of the things I set in Bash via .profile IN MAC
source /Users/<user>/.git-completion.bash
source /Users/<user>/.git-prompt.bash
source /usr/local/etc/bash_completion.d/git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE=1
export gitDir='$(__git_ps1 "(%s)")'
NewPink='\[\e[0;38;2;255;000;127m\]'
NewBlue='\[\e[0;38;2;063;191;255m\]'
View log.txt
Building & testing AsyncDisplayKit.
Analyzing dependencies
Downloading dependencies
Using FBSnapshotTestCase (2.1.4)
Using FLAnimatedImage (1.0.12)
Using JGMethodSwizzler (2.0.1)
Using OCMock (2.2.4)
Using PINCache (3.0.1-beta.2)
Using PINRemoteImage (3.0.0-beta.7)
Generating Pods project
View app_app.iml
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
View shell-pi-test.py
import random
def inside(p):
x, y = random.random(), random.random()
return x*x + y*y < 1
count = spark.sparkContext.parallelize(xrange(0, 100000000)).filter(inside).count()
print "Pi is roughly %f" % (4.0 * count / 100000000)
View knockout-crashcourse-demo
<!DOCTYPE html>
<html>
<head>
<title>Knockout Demo</title>
</head>
<body>
<div data-bind="text: firstName">fern</div>
<div data-bind="text: lastName">zamora</div>
View Dockerfile
FROM golang:1.8-windowsservercore
WORKDIR /compile
RUN git clone https://github.com/golang/go
WORKDIR /compile/go/src
ENV GOROOT_BOOTSTRAP C:/go
ENV CGO_ENABLED 0
RUN cmd /C all.bat
RUN cp ..\bin\*.exe \go\bin
View yoast_seo_local_custom_labels.php
<?php
/*
* Yoast SEO Custom label for Buisness Phone 2
* Credit: https://github.com/amboutwe
* Last Tested: Apr 28 2017 using Yoast SEO Local 4.6 on WordPress 4.7.4
*/
add_filter( 'wpseo_local_contact_details', 'yoast_local_custom_label_business_phone_2' );