Skip to content

Instantly share code, notes, and snippets.

View Toltar's full-sized avatar
👨‍💻
Coding

Matthew Dickens Toltar

👨‍💻
Coding
View GitHub Profile
@Toltar
Toltar / update.sh
Last active November 29, 2016 18:33
A Bash Script which uses Doctrine to create a update.sql file and executes the query into mysql
#!/bin/bash
# Name: Doctrine Update Bash Script
# Description: Updates the MySQL database automatically with one script with doctrine!
echo "Creating the update.sql file.....\n"
./vendor/bin/doctrine-module orm:schema-tool:update --dump-sql >> ./scripts/db/update.sql
#Checking if the file exists
@Toltar
Toltar / main.java
Created December 13, 2016 14:26
Left array Rotation
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);