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
$fa-font-path: "~font-awesome/fonts"; | |
@import '~font-awesome/scss/font-awesome'; | |
.glyphicon { | |
@extend .fa; | |
&.glyphicon-chevron-up { | |
@extend .fa-chevron-up; | |
} | |
&.glyphicon-chevron-right { | |
@extend .fa-chevron-right; |
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
DROP TABLE IF EXISTS time_dimension; | |
CREATE TABLE time_dimension ( | |
id INTEGER PRIMARY KEY, -- year*10000+month*100+day | |
db_date DATE NOT NULL, | |
year INTEGER NOT NULL, | |
month INTEGER NOT NULL, -- 1 to 12 | |
day INTEGER NOT NULL, -- 1 to 31 | |
quarter INTEGER NOT NULL, -- 1 to 4 | |
week INTEGER NOT NULL, -- 1 to 52/53 | |
day_name VARCHAR(9) NOT NULL, -- 'Monday', 'Tuesday'... |
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 Xcode | |
* Install XQuartz | |
* brew install libtiff gtk+ | |
** Change the LLVM Compiler in homebrew to /usr/bin/gcc-4.2: | |
/usr/local/Library/Homebrew/extend/ENV.rb HOMEBREW_USE_GCC | |
brew install--use-gcc | |
** /Usr/local/lib/libintl.8.0.2.dylib symbolic link -> libintl.dylib | |
* gem install origami gtk2 | |
* mkdir -p ~/.local/share | |
** If pdfwalker doesn't run set /Library/Ruby/Gems/1.8/gems/origami-1.0.3/bin/pdfwalker:3 RUBY_VERSION to 1.8 or higher |
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 | |
# Move to a location where you don't mind storing the couchdb install files. | |
cd /tmp/ | |
EPEL_FILE=epel-release-latest-7.noarch.rpm | |
COUCH=apache-couchdb-1.6.1.tar.gz | |
rm -rf epel-release-latest-7.noarch.rpm |
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
// OSHash.swift | |
// Originally implemented from Objective-C version for Swift by omerucel 18/04/2015 | |
// http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes#Objective-C | |
// Updated for Swift 2 by eduo on 15/06/15. | |
// Copyright © 2015 Eduardo Gutierrez. All rights reserved. | |
// | |
import Foundation | |
class OSHashAlgorithm: NSObject { |