Skip to content

Instantly share code, notes, and snippets.

View bayarja's full-sized avatar
🎯
Focusing

Bayarja bayarja

🎯
Focusing
View GitHub Profile
# RailsAdmin config file. Generated on April 04, 2013 19:54
# See github.com/sferik/rails_admin for more informations
RailsAdmin.config do |config|
################ Global configuration ################
# Set the admin name here (optional second array element will appear in red). For example:
config.main_app_name = ['Issue1591', 'Admin']
@takien
takien / youtubeID.js
Last active May 3, 2024 12:41
Get YouTube ID from various YouTube URL using JavaScript
/**
* Get YouTube ID from various YouTube URL
* @author: takien
* @url: http://takien.com
* For PHP YouTube parser, go here http://takien.com/864
*/
function YouTubeGetID(url){
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);