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
INFO global: Vagrant version: 1.6.3 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.6.3\\bin\\vagrant" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1" | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: Plugins: |
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
# Install ttfautohint on Ubuntu 12.04 LTS | |
# @author: Jean Lescure | |
# 2014/04/23 | |
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder | |
cd /tmp | |
git clone git://repo.or.cz/ttfautohint.git | |
cd ttfautohint | |
# Handle bootstrap's dependency: automake |
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
# Invoke using following syntax: | |
# http://boxstarter.org/package/url?[raw link to this gist] | |
# Boxstarter options | |
$Boxstarter.PackageName = "powershell4" | |
$Boxstarter.Version = "1.0.0" | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
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
Set-ExplorerOptions -showFileExtensions | |
Enable-RemoteDesktop | |
choco install googlechrome -y | |
choco install sublimetext3 -y | |
choco install skype -y | |
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
[ | |
{ | |
"Title": "Chappie", | |
"Year": 2015, | |
"imdbRating": 6.9, | |
"Genre": ["Action", "Crime", "Sci-Fi"] | |
}, | |
{ | |
"Title": "Star Wars: The Force Awakens", | |
"Year": 2015, |
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
<?php # src/Acme/Migrations/Version1.php | |
namespace Acme\Migrations; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
/** | |
* Class Version1 | |
* | |
* Notice that file and class names MUST be Version*.php |
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
<?php | |
class PregReplaceSlugify | |
{ | |
public $rules = array( | |
'/º|°/' => 0, | |
'/¹/' => 1, | |
'/²/' => 2, | |
'/³/' => 3, | |
'/æ|ǽ|ä/' => 'ae', |
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
{"lastUpload":"2017-02-18T18:35:28.986Z","extensionVersion":"v2.4.3"} |
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
-- docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=P@ssword" -e "MSSQL_PID=Developer" --cap-add SYS_PTRACE -p 1433:1433 --name sql -it --rm -v C:/Users/AlexandrM/Downloads/ml-100k:/ml-100k -v C:/Users/AlexandrM/Downloads/ml-20m:/ml-20m microsoft/mssql-server-linux | |
-- http://files.grouplens.org/datasets/movielens/ml-20m.zip | |
use master; | |
go | |
DROP DATABASE movies; | |
GO | |
-- Create a graph demo database | |
CREATE DATABASE movies; |
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
WITH d AS ( | |
-- should return (cid - user id, vid - item id, rating) | |
SELECT | |
clientId as cid, | |
REGEXP_EXTRACT(page.pagePath, r'/company\d+/vacancy(\d+)') AS vid, | |
MAX( | |
CASE | |
WHEN page.pagePath LIKE '%apply=thanks%' THEN 5 | |
WHEN page.pagePath LIKE '%mode=apply%' THEN 2 |
OlderNewer