Make sure everything is up to date.
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
/** | |
The following script works like this: | |
1. Auto play the game | |
2. Get all the color elements (<span>) inside the game | |
3. Push the elements to different arrays based on it's color | |
i.e: | |
– If it's a "red" color, goes to the "red" array | |
– If it's a "blue" color, goes to the "blue" array | |
4. Check each of those arrays has only one element, which is the one that | |
has a different/unique color compared to the others |
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
find . -type d -perm 777 -exec chmod 755 {} \; |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
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
<div class="box-grey"></div> | |
<div class="box-rounded"></div> |
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
find . -type d -empty -delete |
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
sudo lsof -i :8000 # checks port 8000 |
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
public function getPointAt(progress : Number) : Point | |
{ | |
var i : int; | |
var length : int = _points.length; | |
var pointProgress : Number; | |
var totalProgress : Number = 0; | |
for(i = 1 ; i < length; i++) | |
{ | |
pointProgress = Point.distance(_points[i], _points[i - 1]) / _length; |
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 just have to call the static method "star" and set the parameters of your star | |
var instance : IDistribute = Distribute.star(items : Array, points : uint, innerRadius : Number = 50, outerRadius : Number = 100, align : String = null); | |
// And if you want your items rotate according to the path, do this: | |
var instance : IDistribute = Distribute.star(items, 5, 50, 100, null).orientToPath(); |
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
package fashion.nugget.motion | |
{ | |
import com.greensock.TimelineLite; | |
import com.greensock.TweenLite; | |
import com.greensock.easing.Expo; | |
/** | |
* @author Grifo.tv / Danilo Figueiredo - http://www.grifo.tv | |
* Lucas Motta - http://lucasmotta.com |
OlderNewer