Skip to content

Instantly share code, notes, and snippets.

View arpit's full-sized avatar

Arpit Mathur arpit

View GitHub Profile
@arpit
arpit / setInterval.md
Last active September 10, 2018 20:58

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:

@arpit
arpit / technologies.md
Last active April 23, 2024 05:25
List of Software Technologies

App Development

  • Android
    • Java
    • Kotlin
  • iOS
    • Objective C
    • Swift
  • Cross Platform
    • React Native
  • Flutter
@arpit
arpit / simple_storage.sol
Last active April 9, 2018 20:04
Simple Storage Smart Contract
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.

Continuous Delivery and Continuous Integration

When you have no devops, you have a person doing the following:

  • Check out code from repository
  • Turn off web server
  • Deploy code
@arpit
arpit / twitter.rb
Created March 2, 2018 19:07
Modeling Twitter
#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")
@arpit
arpit / understanding-word-vectors.ipynb
Created March 2, 2018 15:31 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arpit
arpit / cryptokitties.sol
Created January 23, 2018 21:33
Cryptokitties Contract from the Eth blockchain
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;
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
@arpit
arpit / ethtest.md
Created July 26, 2017 18:49
TestNet address

0x3D143E0450Eb9A450846bb7b861F46D15B156D07