Css3 animation for switching viewport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To remove a submodule you need to: | |
1.Delete the relevant section from the .gitmodules file. | |
2.Stage the .gitmodules changes git add .gitmodules | |
3.Delete the relevant section from .git/config. | |
4.Run git rm --cached path_to_submodule (no trailing slash). | |
5.Run rm -rf .git/modules/path_to_submodule | |
6.Commit git commit -m "Removed submodule <name>" | |
7.Delete the now untracked submodule files | |
rm -rf path_to_submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow from https://github.com/necolas/dotfiles | |
# Add the new submodule | |
git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule | |
# Initialize the submodule | |
git submodule init | |
# Clone the submodule | |
git submodule update | |
# Stage the changes | |
git add vim/bundle/one-submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can change the default company information as below: | |
1, run "regedit" at the command prompt, open the regeditor | |
2, Find the path: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion | |
3, Find the key: RegisteredOrganization, right click "Modify" | |
4, input your lovely new company name,done! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set filetype=bash : | |
# Install: `ln -s ~/.bash/dircolors ~/.dircolors` | |
# Configuration file for the color ls utility | |
# This file goes in the /etc directory, and must be world readable. | |
# You can copy this file to .dir_colors in your $HOME directory to override | |
# the system defaults. | |
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not | |
# pipes. 'all' adds color characters to all output. 'none' shuts colorization | |
# off. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git bash ls命令显示中文乱码, | |
1,在根目录下c:\Users\xxx 下面新建一个.bashrc文件和.bash_aliases文件 | |
2,打开bashrc文件里面加入~/.bash_aliases | |
3,在bash_aliases文件中加入alias ls='ls --show-control-chars --color=auto' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* OrientationChange Event Shim | |
* http://github.com/richtr | |
* | |
* Copyright (c) 2012, Rich Tibbett | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="demo"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// Ref:https://gist.github.com/mamboer/8179563 | |
(function(W) { | |
var lastTime = 0, | |
vendors = ['ms', 'moz', 'webkit', 'o'], | |
x, | |
length, | |
currTime, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GitHub tip: easily sync your master to GitHub Pages | |
On the occasion that you’re working on a web-related project using GitHub, you may want to simply mirror your demo pages or entire master branch over to the Github Pages for your project to make them web-accessible. An example case for this would be the development of a JavaScript tool that includes an “examples/” section. It would be most convenient to just let people browse that as a webpage from GitHub, keeping it up to date every time the master branch changes. | |
GitHub Pages make it possible to serve web content from a branch of your repository, and the automatic page generator is very nice. To make it work in the example above, though, an update to both the base repository and the website requires at least: | |
git checkout master | |
git status | |
git commit -am "Committing changes to master" | |
git push origin master |