Skip to content

Instantly share code, notes, and snippets.

View rameshpaudel's full-sized avatar

Ramesh Paudel rameshpaudel

  • Melbourne, Australia
View GitHub Profile
Organization name: leexij@gmail.com
Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k

(a gist based on the old toolmantim article on setting up remote repos)

To collaborate in a distributed development process you’ll need to push code to remotely accessible repositories.

This is somewhat of a follow-up to the previous article setting up a new rails app with git.

For the impatient

Set up the new bare repo on the server:

<h1>CART</h1>
<form>
<input type="text" class='search' placeholder = "Search"> <input class='searchClick' type="submit" value='Go'> <br><br>
<div class='inside-form'>
<input type="checkbox" value="Bike">Bike<br>
<input type="checkbox" value="Car" >Car<br>
<input type="checkbox" value="Bicycle" >Bicycle<br>
<input type="checkbox" value="Aeroplane" >Aeroplane<br>
<input type="checkbox" value="Scooter" >Scooter<br>
<h1>CART</h1>
<form>
<input type="text" class='search' placeholder = "Search"> <input class='searchClick' type="submit" value='Go'> <br><br>
<div class='inside-form'>
<input type="checkbox" value="Bike">Bike<br>
<input type="checkbox" value="Car" >Car<br>
<input type="checkbox" value="Bicycle" >Bicycle<br>
<input type="checkbox" value="Aeroplane" >Aeroplane<br>
<input type="checkbox" value="Scooter" >Scooter<br>
var value = "";
var checkList = [];
var resultList = [];
var listData = document.querySelector('.inside-form');
const getInputs = document.querySelectorAll('.inside-form input');
const getInputsArray = Array.prototype.slice.call(getInputs);
@rameshpaudel
rameshpaudel / vanilla-js-cheatsheet.md
Created January 28, 2019 08:00 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@rameshpaudel
rameshpaudel / 0-model-override.js
Created October 31, 2018 19:15 — forked from spencermefford/0-model-override.js
An alternative to extending Loopback's built in models. In our application, we wanted to create a custom role called "ecm-administrator" that would have the ability to create and manage users.
module.exports = function (app) {
var _ = require('lodash');
var User = app.models.User;
var Role = app.models.Role;
var RoleMapping = app.models.RoleMapping;
var ACL = app.models.ACL;
/*
* Configure ACL's
*/
@rameshpaudel
rameshpaudel / promisesEM.md
Created May 9, 2018 18:28 — forked from dmvaldman/promisesEM.md
Promises as EventEmitters

Promises as EventEmitters

I was trying to understand JavaScript Promises by using various libraries (bluebird, when, Q) and other async approaches.

I read the spec, some blog posts, and looked through some code. I learned how to

@rameshpaudel
rameshpaudel / MainActivity.java
Created June 28, 2016 06:52 — forked from udacityandroid/MainActivity.java
Android for Beginners : Menu Starter Code
package com.example.android.menu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
@rameshpaudel
rameshpaudel / requestanimationframe.js
Created June 16, 2016 16:37 — forked from desandro/requestanimationframe.js
requestAnimationFrame polyfill
/**
* requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al.
* https://gist.github.com/1866474
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
**/
/*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */