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
| function pdf_join { | |
| join_py="/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" | |
| read -p "Name of output file > " output_file && "$join_py" -o $output_file $@ && open $output_file | |
| } |
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
| class Ticket < ActiveRecord::Base | |
| belongs_to :grouper | |
| belongs_to :user | |
| validate :user_cant_be_blacklisted, on: :confirmation | |
| validate :user_cant_double_book, on: :confirmation | |
| validate :grouper_cant_be_full, on: :confirmation | |
| validate :grouper_cant_have_occurred, on: :confirmation |
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 | |
| function help { | |
| echo "Pomoc:" | |
| echo "Klic skripte: $0 [ime_funkcije] [argument_funkcije]" | |
| echo "Moznosti:" | |
| echo -e "\t - fakrek = faktoriela z rekurzijo" | |
| echo -e "\t - fakiter = faktoriela z iteracijo" | |
| echo -e "\t - fibrek = fibonacci z rekurzijo" | |
| echo -e "\t - fibiter = fibonacci z iteracijo" |
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
| /// | |
| // AppDelegate.swift | |
| // ZeroToApp | |
| // | |
| import UIKit | |
| import Firebase | |
| import FBSDKCoreKit | |
| @UIApplicationMain |
- Project (Drupal) is served on
/var/www/htmlin the Vagrant box - Local project files location:
c:\Users\username\Work\projects\my-project\repo\html - Guest machine IP is 10.0.2.2 (if this doesn't work, run
route -neein the VM and look for the gateway address)