Skip to content

Instantly share code, notes, and snippets.

View vinamelody's full-sized avatar

Vina Melody vinamelody

View GitHub Profile
@vinamelody
vinamelody / github-slate.css
Last active October 4, 2024 09:45
Typora theme Github Slate
@import 'gitbook/fonts.css';
/*by H16nning*/
:root {
--bg-color: white;
--side-bar-bg-color: #f5f7f9;
--control-text-color: #3b454e;
--primary-color: rgb(26, 168, 139);
--primary-btn-border-color: rgb(26, 168, 139);

Keybase proof

I hereby claim:

  • I am vinamelody on github.
  • I am vinamelody (https://keybase.io/vinamelody) on keybase.
  • I have a public key ASDPNNd1Ah9_Tdk5f_njIWTFLXy0LyAZ5hxUfNx6EBgChwo

To claim this, I am signing this object:

@vinamelody
vinamelody / korg-ps60-setup.md
Last active December 9, 2017 11:22
Korg PS60 setup

Keyboard Setup

The following pictures shows the recommended keyboard setup for Kord PS60 from left to right.

Performance no. 5

image

Piano: No 07 Solo Piano

image

@vinamelody
vinamelody / Mou Fresh Air+.style
Created December 13, 2016 01:58
Macdown Themes
editor
foreground: 000000
background: ffffff
caret: 000000
editor-selection
foreground: ffffff
background: ff4f92
H1
@vinamelody
vinamelody / Github2.css
Created December 13, 2016 01:56
Macdown Github2 for Rendering (folder Style)
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@vinamelody
vinamelody / .gitconfig
Created November 17, 2016 03:12
Git config
[alias]
d = diff
br = branch --all
ci = commit
co = checkout
dh = diff HEAD
lg = log --graph --pretty=format:'%Cred%h..%Creset - %s %Cgreen(%cr)%Creset - %an' --abbrev-commit --date=relative
lgn = log --pretty=oneline --abbrev-commit --show-notes=*
mnff = merge --no-ff
rh = reset --soft HEAD^
@vinamelody
vinamelody / takephoto.swift
Created July 7, 2016 08:07
Swift: Take photo button action
@IBAction func takePhoto(sender: UIButton) {
let imagePicker: UIImagePickerController! = UIImagePickerController()
imagePicker.delegate = self
if (UIImagePickerController.isSourceTypeAvailable(.Camera)) {
if UIImagePickerController.availableCaptureModesForCameraDevice(.Front) != nil {
imagePicker.allowsEditing = false
imagePicker.sourceType = .Camera
imagePicker.cameraCaptureMode = .Photo
@vinamelody
vinamelody / firebase-query.swift
Created July 7, 2016 07:29
Swift: Query one last entry from Firebase, with completion handler
func getTheLastGuestKey(completionHandler: (Bool)-> ()) {
self.guestRef.queryOrderedByKey().queryLimitedToLast(1).observeSingleEventOfType(.Value, withBlock: {(snapshot) in
for guest in snapshot.children {
let guestSnapshot = snapshot.childSnapshotForPath(guest.key)
var lastGuestCheckintime: String! = ""
if let result_checkin = guestSnapshot.value?["checkintime"] as? NSNumber {
lastGuestCheckintime = "\(result_checkin)"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.