- Fast AI course on Machine Learning
- Machine Learning Guides: From Google
- Machine Learning for Artists: Free book on Github
- Eva Icons: MIT
- Clarity Icons (MIT License)
- Feather Icons (MIT License)
- BallIcons (Commercial, not FOSS)
- Glyphish
- IconBros: Nice icons for commercial use
- DevIcons: Icons for programming languages and tools (Java, Atom etc)
- FontAwesome: SVGs and iconfont
setInterval
and clearInterval
are top level functions part of JavaScript
What does that mean?
Basically these functions are defined by the window object. You can either call this function like window.setInterval( ... )
or just setInterval( ... )
setinterval is used to call any function again and again every few milliseconds.
It takes 2 parameters: the function to call periodically and what the duration between the calls is. So for example:
This file contains hidden or 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
pragma solidity ^0.4.17; | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) public { | |
storedData = x; | |
} | |
function get() public view returns (uint) { |
So far what we have learnt is about developing apps. But in a company software development is only part of the story, the other part is Software Delivery. This is where DevOps, Infrastructure Engineering etc roles come in.
When you have no devops, you have a person doing the following:
- Check out code from repository
- Turn off web server
- Deploy code
This file contains hidden or 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 goal of this exercise is to create the models for a app like Twitter. We are not going to use Rails, just plain old Ruby. | |
#The goal is to be able to generate timelines for each user. The final code should look like this: | |
twitter = Twitter.new | |
user1 = User.new("alice") | |
user1.tweet("hello world") | |
user1.tweet("So hungry today") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
pragma solidity ^0.4.11; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
*/ | |
contract Ownable { | |
address public owner; |
This file contains hidden or 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
Rouge comes packed with a Sinatra test app. | |
To use it, you have to run this command in the root of the app: | |
``` | |
rackup | |
``` | |
which boots up a Sinatra server | |
When its running: | |
http://localhost:9292/?theme=monokai |