Skip to content

Instantly share code, notes, and snippets.

View yknx4's full-sized avatar

Jade Alejandra Ornelas yknx4

View GitHub Profile
@yknx4
yknx4 / perfectelementary.bash
Created November 27, 2015 03:15
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@yknx4
yknx4 / android_resources.txt
Last active March 11, 2016 19:53
Useful Android Resources
Centered Toolbar Examples
http://sourcey.com/android-custom-centered-actionbar-with-material-design/
RecyclerView Animations
https://github.com/wasabeef/recyclerview-animators
UltimateFramework (TO SEE)
https://github.com/cymcsg/UltimateAndroid
UltimateRecyclerView
@yknx4
yknx4 / .zshrc
Last active April 21, 2016 19:32
Personal ZSH configuration
# Path to your oh-my-zsh installation.
export ZSH=/Users/yknx4/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="honukai"
# Uncomment the following line to use case-sensitive completion.
s:Green
limit:60
type:1
offset:0
{"result":{"songs":[{"id":412327696,"name":"Green","artists":[{"id":29452,"name":"Blake Shelton","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null}],"album":{"id":34678876,"name":"If I'm Honest","artist":{"id":0,"name":"","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null},"publishTime":1463673600007,"size":15,"copyrightId":7002,"status":-5,"picId":1389782706482734},"duration":191518,"copyrightId":7002,"status":-5,"alias":[],"rtype":0,"ftype":0,"mvid":0,"fee":0,"rUrl":null},{"id":28481789,"name":"Green","artists":[{"id":257645,"name":"Rob Simonsen","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null}],"album":{"id":2794045,"name":"最新热歌慢摇62","artist":{"id":0,"name
s:Green
limit:60
type:10
offset:0
{"result":{"albums":[{"songs":[],"tags":"","alias":[],"artists":[{"img1v1Id":0,"alias":[],"picId":0,"briefDesc":"","picUrl":"http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","albumSize":0,"img1v1Url":"http://p3.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","trans":"","musicSize":0,"name":"麦田守望者","id":12262}],"copyrightId":0,"picId":56075093028884,"briefDesc":"","artist":{"img1v1Id":0,"alias":[],"picId":608029930209450,"briefDesc":"","picUrl":"http://p3.music.126.net/6z69W8i00EcDaZFU7sjCQA==/608029930209450.jpg","albumSize":6,"img1v1Url":"http://p4.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","trans":"","musicSize":75,"name":"麦田守望者","id":12262},"picUrl":"http://p3.music.126.net/Bbk9ifM4EPP7YfwLZ4Q0NA==/56075093028884.jpg","commentThreadId":"R_AL_3_36198","publishTime":1185897600000,"company":"太合麦田","status":1,"companyId":0,"pic":56075093028884,"blurPicUrl":"http://p3.music.126.net/Bbk9ifM4EPP7YfwLZ4Q0NA==/56075093028884.jpg
s:Green
limit:60
type:100
offset:0
{"result":{"artistCount":250,"artists":[{"id":93187,"name":"Green Day","picUrl":"http://p3.music.126.net/ey40h32jGY4DIqKJtuiCbw==/261683767427846.jpg","alias":["风华年代","青春日"],"albumSize":53,"picId":261683767427846,"img1v1Url":"http://p3.music.126.net/kQa4CvauKu4_qBth3BKl9Q==/215504279061564.jpg","img1v1":215504279061564,"transNames":["绿日乐队"],"alias":["风华年代","青春日"],"mvSize":49,"followed":false,"trans":"绿日乐队"},{"id":93207,"name":"Green River Ordinance","picUrl":"http://p3.music.126.net/rZyu2fFrc8hp95lExBKEOg==/558551906921998.jpg","alias":[],"albumSize":14,"picId":558551906921998,"img1v1Url":"http://p4.music.126.net/TbD8nV4dOMaJKjmLTZnlgw==/558551906922000.jpg","img1v1":558551906922000,"mvSize":0,"followed":false,"trans":null},{"id":126820,"name":"绿色地带","picUrl":"http://p4.music.126.net/-U_4gG4mSyFmrLmKGBOIqA==/5987940325386067.jpg","alias":["Green Area"],"albumSize":4,"picId":5987940325386067,"img1v1Url":"http://p4.music.126.net/Q0XXgCrS22eIaxcBL4kMKQ==/5870292581009486.jpg"
class ProfileBookEvaluator
OTHER_MATCH_COUNT = 10
def evaluate( profile_id )
profile = profile_id
# This check is to not to brake existing functionality, but it is better to pass a profile_id than the full object
if profile.is_a? Profile
# Ensure we have the most up-to-date information on this object
198.47.104.134 m10.music.126.net
198.47.104.134 m3.music.126.net
123.58.180.105 m6.music.126.net
174.35.52.182 m9.music.126.net
174.35.25.7 m1.music.126.net
220.243.234.5 m4.music.126.net
174.35.24.139 m7.music.126.net
198.47.104.134 m2.music.126.net
123.58.180.106 m5.music.126.net
220.243.234.8 m8.music.126.net
@yknx4
yknx4 / Default.java
Last active August 10, 2016 16:24
DefaultMainActivity
package com.example.yknx4.applicationdefault;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
@yknx4
yknx4 / setup_blog.sh
Last active October 20, 2016 14:40
Setup Blog
cd ~/Projects
git clone git@github.com:yknx4/yknx4.github.io-generator.git
cd ~/Projects
git clone git@github.com:yknx4/blog.git
cd ~/Projects/yknx4.github.io-generator/themes
rm -rf slender
git clone https://github.com/yknx4/slender
cd ~/Projects