Skip to content

Instantly share code, notes, and snippets.

@xerosanyam
xerosanyam / Annotateit.js
Last active August 29, 2015 14:10 — forked from eeeschwartz/main.js
Greasemonkey code for Annotateit.org
// ==UserScript==
// @name annotate
// @namespace annotate
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @require http://assets.annotateit.org/annotator/v1.2.9/annotator-full.min.js
// @resource UI_CSS http://assets.annotateit.org/annotator/v1.2.9/annotator.min.css
// @grant GM_addStyle
// @grant GM_getResourceText
// @run-at document-start
@xerosanyam
xerosanyam / Map.html
Last active August 29, 2015 14:13
Map Code for SDS
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
@xerosanyam
xerosanyam / designer.html
Created February 9, 2015 09:07
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
@xerosanyam
xerosanyam / GeeksForGeeks Bullets to Numbers.user.js
Created July 12, 2015 07:23
GeeksForGeeks Bullets to Numbers
// ==UserScript==
// @name Xerosanyam's script to convert UL to OL
// @description This script converts all ul tags to ol on GeeksforGeeks.org Domain.
// @namespace http://www.geeksforgeeks.org/ul-to-ol
// @include http://www.geeksforgeeks.org/*
// @grant None
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// ==/UserScript==
$($('.wrapper').find('ul').get().reverse()).each(function(){
@xerosanyam
xerosanyam / README.md
Created March 8, 2016 15:37 — forked from estebistec/README.md
This minimal setup allows you to run nginx using the current folder as the doc-root.NOTE: python's simplehttpserver may be good enough for you. This is just a nice simple nginx setup.
  1. Get all of these files into the target folder
  2. Run the following commands:
chmod +x *.sh
./nginx-start.sh
@xerosanyam
xerosanyam / Settinp up nginx as Static File Server (Minimal)
Last active May 30, 2016 18:05
Settinp up nginx as Static File Server (Minimal)
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
nginx -v
http://app.mindmapmaker.org/#m:mm494aabe32c8e4144829c631c0870a230
To start nginx (Linux)
sudo /etc/init.d/nginx start
@xerosanyam
xerosanyam / giphy.js
Created May 18, 2017 05:01 — forked from nealrs/giphy.js
use the giphy api to search for & add an animated gif to a webpage.
// on page load, search for & display a random gif matching your search term using the Giphy API.
// usage:
// include giphy.js in your <head>
// set q to your search term (e.g. "brunch")
// add <span id = "giphyme"></span> wherever you want to display the image. -- FYI, it will be centered.
// big ups to the Giphy crew (giphy.com)
// 2014 - Neal Shyam [@nealrs | nealshyam.com]
document.addEventListener('DOMContentLoaded', function () {
q = "finger guns"; // search query
@xerosanyam
xerosanyam / auth 1.js
Created June 28, 2017 09:17
first step
<!-- Contains auth ui -->
<template lang="html">
<div id="firebaseui-auth-container"></div>
</template>
<script>
import firebase from 'firebase'
import firebaseui from 'firebaseui'
import {config} from '../helpers/firebaseConfig';
@xerosanyam
xerosanyam / step 2.js
Created June 28, 2017 09:18
second step
<!-- contains what to do on signin succss -->
<template>
<div>
<h1>Signup succeeded</h1>
<button @click='logOut'>Log out</button>
<hr>
<img :src="photo" style='height: 120px'> <br>
<p>{{name}}</p>
<p>{{email}}</p>
<p>{{userId}}</p>
@xerosanyam
xerosanyam / userSettings.js
Created October 5, 2017 11:09
VSCode settings for Vue
{
"eslint.enable": true,
"eslint.validate": [
{ //list of extensions to validate
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true //Autofix any fixable errors when linting