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
if [ -f ~/.zsh_nocorrect ]; then | |
while read -r COMMAND; do | |
alias $COMMAND="nocorrect $COMMAND" | |
done < ~/.zsh_nocorrect | |
fi |
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
(* 2 2) |
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
class Game | |
attr_accessor :winner | |
class Player | |
attr_accessor :current_score | |
def initialize(game) | |
@current_score = 0 | |
@game = game | |
end |
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
# index.py | |
from whoosh.fields import Schema, TEXT, ID | |
schema = Schema( | |
title=TEXT(stored=True), | |
description=TEXT(stored=True), | |
date=ID) | |
# index_builder.py |
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
# index.py | |
import os | |
from whoosh.fields import Schema, TEXT as text, ID as id | |
from whoosh.index import create_in, open_dir | |
schema = Schema( | |
title=text(stored=True), | |
description=text(stored=True), |