#PidginScript ###or BrahScript
variable assignment => dakine example: dakine name stay "Jon"
NULL => sostay
= operator => stay
!= operator => not
#PidginScript ###or BrahScript
variable assignment => dakine example: dakine name stay "Jon"
NULL => sostay
= operator => stay
!= operator => not
//On BitBucket | |
var user = 'sgnl' //enter your username here | |
if (!logged_in_at_bitbucket){ | |
userLogin(); | |
} | |
goTo.YourAccountSettings('https://bitbucket.org/account/' + user + '/'); | |
$('a#SSH-Kets').click(); |
var usergrid = require('usergrid'); | |
/* Usergrid */ | |
var client = new usergrid.client({ | |
orgName:'lupin', | |
appName:'sandbox', | |
logging: true, //optional - turn on logging, off by default | |
}); |
Build a basic chat room. The purpose of this exercise is to practice getting user input and manipulating the DOM through javascript with jQuery.
Requirements:
:first-child - https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child | |
:last-child - https://developer.mozilla.org/en-US/docs/Web/CSS/:last-child | |
:nth-child() - https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child | |
30 Most Helpful CSS Selectors: | |
http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048 | |
Special Stuff: |
var utils = require('utils'); | |
events.on("player.PlayerMoveEvent", function(evt) { | |
var playerLoc = utils.getPlayerPos(evt.player); | |
var drone = new Drone(playerLoc); | |
// console.log(playerLoc); | |
drone.box(blocks.wood, 1, 1, 1); | |
}); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var groceryStore = { |
/** | |
* This function logs to the console each element in an Array of Strings. | |
* This function accepts an Array of Strings as an argument and returns nothing. | |
* | |
* printArray(['Such', 'Hawks', 'Such', 'Hounds']); | |
* | |
* Will display in the console as: | |
* Such | |
* Hawks | |
* Such |