Skip to content

Instantly share code, notes, and snippets.

LiuJie liujie-gd

  • GeneDock
  • Beijing
Block or report user

Report or block liujie-gd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View quicksort-and-binary-search.py
#!/usr/bin/env python
# coding=utf-8
import random
def sort(a, low, height):
i = a[height]
while low < height:
while low < height and a[low] <= i:
@liujie-gd
liujie-gd / sierra-virtualbox-install.md
Created Nov 14, 2017 — forked from arobb/sierra-virtualbox-install.md
Install macOS Sierra in VirtualBox on macOS host
View sierra-virtualbox-install.md

https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/

Step 1 (Creating a bootable macOS Sierra ISO for VirtualBox):

  1. hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
  2. hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
  3. hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
  4. asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
  5. rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
  6. cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
  7. cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
@liujie-gd
liujie-gd / FruitComboApplication.java
Created Jul 28, 2017 — forked from jewelsea/FruitComboApplication.java
JavaFX fxml combo box selection demonstration app
View FruitComboApplication.java
package fruit;
import java.io.IOException;
import java.net.URL;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
You can’t perform that action at this time.