- the versions between jasmine and karma are kind of wonky. Likely because Jasmine isn't keeping up with the other changes to karma.
- karma or mocha, or something I was using, doesn't like coffee even though processors by default includes coffee.
- PHantomJS really sticks to the 30sec timeout even if all the tests have been run.
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
# This one-liner commits a change from another local dir to the current repo. | |
# It uses a patch file to export the change and the does a 3 way commit. | |
# Found here: http://stackoverflow.com/questions/5120038/is-it-possible-to-cherry-pick-a-commit-from-another-git-repository | |
$ git --git-dir=../some_other_repo/.git \ | |
format-patch -k -1 --stdout <commit SHA> | \ | |
git am -3 -k |
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
yargs = require 'yargs' | |
args = yargs | |
.options( | |
t: | |
alias: "tstuff" | |
description: "Does t stuff" | |
b: | |
alias: "batman" |
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
Oliver Queen Green Arrow | |
Alan Scott Green Lantern | |
Will Everett Amazing Man | |
Irwin Schwab Ambush Bug | |
Buddy Baker Animal Man | |
Arthur Curry Aquaman | |
Roy Harper Red Arrow | |
Ray Palmer Atom |
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/bash | |
mkdir -p dest/temp | |
sed -e ' | |
s/:before[ ]*{// | |
/^[^.]/d | |
/^$/d | |
' src/site/styles/style.css > dest/temp/icons.txt |
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
UIScreen* mainScreen = [UIScreen mainScreen]; | |
CGRect frame = mainScreen.bounds; | |
MyUIView* view = [[MyUIView alloc] initWithFrame:frame]; | |
UIImage* background = [UIImage imageNamed:@"[email protected]"]; | |
UIImageView* bgView = [[UIImageView alloc] initWithImage:background]; | |
bgView.frame = frame; |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"encoding/json" | |
) | |
type Data struct { | |
Id string `json:"id"` |
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
func main() { | |
app := cli.NewApp() | |
app.Name = "cli" | |
app.Version = "0.0.1" | |
app.Usage = "Fight the lack of Go knowledge" | |
app.Commands = []cli.Command { | |
{ | |
Name: "web", | |
Aliases: []string{"s"}, | |
Usage: "Start the web server.", |
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
`rpm -i some-pacakge.rpm` This doesn't downlaod or install all dependencies. Instead that process must be done manually by the user. | |
`yum install some-package` Finds the package and it's dependencies, queries meta-data to determine size, then prompts to install y/n. | |
`/etc/yum.conf` Holds references and values to control yum. Like cachedir and logfile, etc. | |
`/etc/yum.repo.d` Holds conf for various repository descriptions. | |
`yum clean` Cleans out various parts of the locally stored information. | |
`yum makecache` To create the information i your local database for the enabled repos. | |
`yum remove some-package` To remove some-package. | |
`rpm -e some-package` Will also remove some-package. Errors out if package is required dependency of another installed package. | |
`rpm -e --test some-package` Will test to see if the package can be removed. | |
`yum remove some-package` Will walk the dependencies, show which packages will be removed, and prompt y/n. |
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
matches = [ | |
[ "abc", false ], | |
[ "a\\1d", true ] | |
] | |
re = /\\[0-9]/; | |
for (var i = 0; i < matches.length; i++) { |