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
# By Samhan Salahuddin | |
# 25th November 2016 | |
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): |
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
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): | |
def __init__(self,fileName): | |
self.outputFileName = fileName | |
self.MIDIObject = MIDIFile(1) |
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
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): | |
def __init__(self,fileName): | |
self.outputFileName = fileName | |
self.MIDIObject = MIDIFile(1) |
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
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): | |
def __init__(self,fileName): | |
self.outputFileName = fileName | |
self.MIDIObject = MIDIFile(1) |
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
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): | |
def __init__(self,fileName): | |
self.outputFileName = fileName | |
self.MIDIObject = MIDIFile(1) |
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
from midiutil.MidiFile import MIDIFile | |
from random import randint | |
from random import randrange | |
class MIDIGenerator(object): | |
def __init__(self,fileName): | |
self.outputFileName = fileName | |
self.MIDIObject = MIDIFile(1) |
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
// | |
// ViewController.swift | |
// Stopwatch new | |
// | |
// Created by Samhan on 06/08/16. | |
// Copyright © 2016 Samhan. All rights reserved. | |
// | |
import UIKit |
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
class Emojifier | |
{ | |
var emojiMap : [ String : [String]] = [ | |
"smile|happy|laugh" : ["😀","😁","😃","😄","😆","😊","🙂","😇"], | |
"wink|kidding" : ["😉"], | |
"tasty|yum|yummy|taste" : ["😋"], | |
"cool" : ["😎"], | |
"love" : ["😍","😘"], | |
"kiss" : ["😗","😙"], |
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
self.textView.layer.borderColor = UIColor.blueColor().CGColor | |
self.textView.layer.borderWidth = 2.0 | |
self.textView.becomeFirstResponder() |
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
var emojiMap : [ String : [String]] = [ | |
"smile|happy|laugh" : ["😀","😁","😃","😄","😆","😊","🙂","😇"], | |
"wink|kidding" : ["😉"], | |
"tasty|yum|yummy|taste" : ["😋"], | |
"cool|kewl" : ["😎"], | |
"love|luv" : ["😍","😘"], | |
"kiss" : ["😗","😙"], | |
"Hug" : ["🤗"], | |
"Think" : ["🤔"], | |
"nothing" : ["😐","😑"], |