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
// cloned robot from other gamer for understanding | |
var Robot = function(robot) | |
{ | |
myID = robot.id; | |
direction = 1; | |
directionClone = -1; | |
robot.clone(); | |
}; |
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
function Robot(robot) {} | |
// well, we need to do something... | |
// whenever our robot is idle, this method gets called. | |
Robot.prototype.onIdle = function(ev) { | |
var robot; | |
robot = ev.robot; | |
robot.ahead(150); | |
robot.rotateCannon(360); |
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 first commented line is your dabblet’s title | |
*/ | |
.fancy-arrow { | |
width: 370px; | |
height: 35px; | |
color: #fff; | |
text-transform: uppercase; | |
background: #0e0e0e; |
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 first commented line is your dabblet’s title | |
*/ | |
.fancy-arrow { | |
width: 370px; | |
height: 35px; | |
color: #fff; | |
text-transform: uppercase; | |
background: #0e0e0e; |
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
<?php | |
function XMLEncode($obj, $level = 1, $xml = NULL) | |
{ | |
if(!$obj){ | |
return FALSE; | |
} | |
if($level==1) | |
{ | |
$xml .= '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n"; |
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin font-type( $name, $src, $style, $weight: 400 ) { | |
@font-face { | |
font-family: $name; | |
font-style: $style; | |
font-weight: $weight; |
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
<?php | |
/** | |
* @description Echoes custom the_excerpt from any post id. the_excerpt is 7 words long as default | |
* | |
* @arguments mixed | |
* @param array $arguments default NULL array of arguments - the below mentioned + $limit | |
* @param int $post_id default NULL the id of the post, if null, the current post is taken | |
* @param string $cut default '...' when nothing setted it will take the current Postcontent from loop and excerpt it | |
*/ |
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
<?php | |
/** | |
* @description Used array( 'key' => 'your_post_meta_key', 'value' => mixed|int|string ) to get object of post_id's of key or value meta | |
* | |
* @author Davor Ilic | |
* @param array $meta can hold key or value | |
* @return mixed|object|bool | |
*/ | |
function _get_post_id_by_meta( $meta = array() ) | |
{ |
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
<polymer-element name="my-element"> | |
<template> | |
<style> | |
</style> | |
</template> | |
<script> | |
Polymer('my-element', { |
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
//** File name for all font files. | |
$font-name: "Test" !default; | |
//** Element ID within SVG icon file. | |
$font-weights: ( | |
"Light": "light", | |
"Medium": "medium", | |
"Regular": "regular", | |
"Thin": "thin", | |
"Bold": "bold", |
OlderNewer