Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Bootstrap 3 Responsive Video Embeds that Maintain Aspect Ratio.markdown
Created May 14, 2015 03:36
Bootstrap 3 Responsive Video Embeds that Maintain Aspect Ratio

Bootstrap 3 Responsive Video Embeds that Maintain Aspect Ratio ('-' * 62) When Bootstrap 3.2 came out, it came out with an additional helper class to make it easier to make iframes (like YouTube embeds) responsive while maintaining a certain aspect ratio. It’s extremely easy to use these, just add the following code to your markup:

A Pen by Nicholas Cerminara on CodePen.

License.

(function () {
var dateTimeController = function ($scope, $rootScope) {
$scope.vm = {
message: "Bootstrap DateTimePicker Directive",
dateTime: {}
};
$scope.$watch('change', function(){
console.log($scope.vm.dateTime);
});
@niksumeiko
niksumeiko / git.migrate
Last active July 1, 2025 18:41
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.