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
Created February 20, 2024 15:45
Typora theme Github Slate
@import 'gitbook/fonts.css';
/*by H16nning*/
:root {
--bg-color: #242932;
--side-bar-bg-color: #29303c;
--control-text-color: #e6ecf1;
--primary-color: rgb(56, 132, 255);
--primary-btn-border-color: #3884ff;

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.