Skip to content

Instantly share code, notes, and snippets.

View gokatz's full-sized avatar
🎯
Focusing

Gokul Kathirvel gokatz

🎯
Focusing
View GitHub Profile
@senthilp
senthilp / push.js
Last active August 15, 2018 14:40
eBay Push Subscription
/* global firebase */
'use strict';
const chauffeurElem = document.querySelector('.chauffeur-script');
function lazyLoad(url) {
return new Promise((resolve, reject) => {
const scriptElem = document.createElement('script');
scriptElem.type = 'application/javascript';
scriptElem.async = true;
@mixonic
mixonic / readme.md
Last active April 21, 2021 23:49
Services for Glimmer.js

Setup

In config/environment.js:

// config/environment.js
'use strict';

/*
 * Mostly this is the stock module config.
@weedgrease
weedgrease / .travis.yml
Last active June 28, 2017 19:30
Ember Electron Configs
sudo: required
dist: trusty
language: node_js
osx_image: xcode8.3
group: deprecated-2017Q2
matrix:
include:
- os: linux
node_js: 6
addons:
@josiahbryan
josiahbryan / ember-sample-index.html
Last active February 22, 2019 13:29
This is a sample "index.html" to for use with Ember. It moves the loading of the compiled "vendor.js" into an animation frame and instead renders a simple splash screen first with a simple CSS loading indicator. Then, once the splash screen is on screen, it starts loading the <scripts> generated by Ember to boot the app. This should be generic e…
<!DOCTYPE html>
<html style='height:100%;overflow:none'>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>My App</title>
<meta name="description" content="My App by My Company, Inc.">
<!-- http://www.favicon-generator.org/ generates a good starting manifest that I tweak by hand -->
<link rel="manifest" href="/manifest.json">
@akashnimare
akashnimare / instructions.txt
Last active January 9, 2024 10:00
Download Frontend Master courses video. Note: This is for learning purpose only. Please don't mis-use it.
# Requirements
* Python 2.7
* Google Chrome
* ChromeDriver - WebDriver for Chrome
- Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads
- Extract and move `chromedriver` file to `/usr/local/bin/chromedriver`
- git clone https://github.com/li-xinyang/OS_FrontendMaster-dl
- cd OS_FrontendMaster-dl
@sterlingwes
sterlingwes / README.md
Last active April 4, 2018 06:05
Getting past cross-origin Web Worker exception

Cross-origin web worker scripts

If you're like me and wanted to serve your main app script from a CDN and still load a web worker, you may have encountered the following error:

Uncaught DOMException: Failed to construct 'Worker': Script at 'http://cdn.example.com/worker.js' cannot be accessed from origin 'http://example.com'

You can get around this fairly simply with importScripts by making the script you instantiate your worker with load the actual worker script from the CDN.

@ravibhure
ravibhure / git_rebase.md
Last active April 3, 2024 08:38
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream