MySQL Download URL
https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.56-linux-glibc2.5-x86_64.tar.gz
- Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep elasticsearch | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
launchctl remove homebrew.mxcl.elasticsearch | |
pkill -f elasticsearch |
#!/usr/bin/python -tt | |
# Copyright 2010 Google Inc. | |
# Licensed under the Apache License, Version 2.0 | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Google's Python Class | |
# http://code.google.com/edu/languages/google-python-class/ | |
# Basic list exercises | |
# Fill in the code for the functions below. main() is already set up |
# F. front_back | |
# Consider dividing a string into two halves. | |
# If the length is even, the front and back halves are the same length. | |
# If the length is odd, we'll say that the extra char goes in the front half. | |
# e.g. 'abcde', the front half is 'abc', the back half 'de'. | |
# Given 2 strings, a and b, return a string of the form | |
# a-front + b-front + a-back + b-back | |
def front_back(a, b): | |
af = len(a)//2 |
#!/usr/bin/python -tt | |
# Copyright 2010 Google Inc. | |
# Licensed under the Apache License, Version 2.0 | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Google's Python Class | |
# http://code.google.com/edu/languages/google-python-class/ | |
# Basic string exercises | |
# Fill in the code for the functions below. main() is already set up |
#!/bin/python3 | |
import sys | |
if __name__ == '__main__': | |
n = int(input()) | |
m = 1 | |
i=0 | |
dic = {} | |
for i in range (n): |
if __name__ == '__main__': | |
N = int(input()) | |
i=0 | |
while i < N: | |
S = str(input()) | |
strlen = len(S) | |
j = 0 | |
even = "" | |
odd = "" |