Skip to content

Instantly share code, notes, and snippets.

View AmilKey's full-sized avatar
🏠
Working from home

DekkoSecure 2 AmilKey

🏠
Working from home
View GitHub Profile
@AmilKey
AmilKey / gist:ed84b961db13b1322c5e238e8d2b2666
Created December 12, 2016 11:58
Prevent scroll-bar from adding-up to the Width of page on Chrome
http://stackoverflow.com/questions/18548465/prevent-scroll-bar-from-adding-up-to-the-width-of-page-on-chrome
html {
overflow-x: hidden;
margin-right: calc(-1 * (100vw - 100%));
}
var Calculator = {
init: function() {
this.output = document.getElementById('output');
this.resultText = '';
this.resultNumber = 0;
},
onClick: function(e) {
console.log(e.target.innerHTML);
const buttonText = e.target.innerHTML;
@AmilKey
AmilKey / gist:9d040dfb0400bc942a428cd32184b9b0
Created February 24, 2017 09:09
to discard local commits
Your branch is ahead of 'origin/master' by 3 commits.
will remove all commits not in origin/master where origin is the repo name and master is the name of the branch.
git reset --hard origin/master
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@AmilKey
AmilKey / controllers.application.js
Last active March 2, 2018 18:35
test push nodes
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
let data = [];