Skip to content

Instantly share code, notes, and snippets.

View sunmughan's full-sized avatar
:octocat:
Verified Developer

Sunmughan Swamy sunmughan

:octocat:
Verified Developer
View GitHub Profile
@sunmughan
sunmughan / modernizr.custom.js
Created August 28, 2017 01:35
Custom Modernizer
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-shiv-cssclasses-load
*/
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m={},n={},o={},p=[],q=p.slice,r,s={}.hasOwnProperty,t;!w(s,"undefined")&&!w(s.call,"undefined")?t=function(a,b){return s.call(a,b)}:t=function(a,b){return b in a&&w(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)
@sunmughan
sunmughan / index.html
Created August 11, 2017 18:02 — forked from SendOTP/index.html
SendOTP: Client Side flow sample code
<script type="text/javascript" src="jquery-2.1.4.min.js"></script>
<script type="text/javascript">
function sendOTP() {
var data = JSON.stringify({countryCode: "country code", mobileNumber: "Mobile number to be verified"});
$.ajax({
url: 'https://sendotp.msg91.com/api/generateOTP',
type: 'POST',
crossDomain: true,
processData: false,
contentType: 'application/json',
@sunmughan
sunmughan / loader.html
Created June 19, 2017 11:03
Colourful Youtube Progress Bar
<div class='cssload-loader' id='loader'><myloader>
<div aria-busy='true' aria-label='Loading, please wait..' role='progressbar'/>
</myloader></div>
<div class='page-loader' id='pagingx'/>
@sunmughan
sunmughan / Loader.js
Created June 19, 2017 11:01
Colourful Youtube Progress Bar
<script type='text/javascript'>
//<![CDATA[
// Loader
$(document).ready(function(){$("body").removeClass("page-isload"),$("#pagingx").fadeOut(8000),$("#loader").fadeOut(8000)});
//]]>
</script>
@sunmughan
sunmughan / loader.css
Created June 19, 2017 10:59
Colorful Youtube Progress Bar
<style type='text/css'>
.cssload-loader{position:absolute;bottom:0;left:0;right:0;margin:auto;z-index:1000}
myloader [role=&quot;progressbar&quot;][aria-busy=&quot;true&quot;]{position:absolute;top:0;left:0;padding-bottom:3px;width:100%;background-color:#159756;-webkit-animation:preloader-background linear 3.5s infinite;animation:preloader-background linear 3.5s infinite}
myloader [role=&quot;progressbar&quot;][aria-busy=&quot;true&quot;]::before,myloader [role=&quot;progressbar&quot;][aria-busy=&quot;true&quot;]::after{display:block;position:absolute;top:0;z-index:2;width:0;height:3px;background:#afa;-webkit-animation:preloader-front linear 3.5s infinite;animation:preloader-front linear 3.5s infinite;content:&#39;&#39;}
myloader [role=&quot;progressbar&quot;][aria-busy=&quot;true&quot;]::before{right:50%}
myloader [role=&quot;progressbar&quot;][aria-busy=&quot;true&quot;]::after{left:50%}
@-webkit-keyframes preloader-background{0%,24.9%{background-color:#159756}25%,49.9%{background-color:#da4733}50%,74.9%{ba
@sunmughan
sunmughan / Latest Lineage OS R79.css
Created May 26, 2017 16:01
Latest Lineage OS R79 Whatsnew
Added Latest Build R79 Patches (Tirth Patel's Build)
All new stuff from CM
Added battery Doze
Fixed GPS, Ril, WiFi
Faster GPS Lock
Smooth Audio
Dual Sim Patched
Better Camera
Stability improvements
Super Smooth
@sunmughan
sunmughan / Lineage OS Latest R79 Changelogs.css
Created May 26, 2017 15:54
Lineage OS Latest R79 Changelogs
Security patch (25/05/2017)
Upstreamed to r79
Merged Lineage Upstream Changes
Updated Security Strings to April 2017
Fixed 2G/3G Switch
Data Connection is more stable
Fixed Consecutive Lags due to Selinux
Reduce Logging
Fixed sdcard name on FileManager
Data 3G Working
@sunmughan
sunmughan / Hexagon OS Features.txt
Created April 21, 2017 12:49
Hexagon OS Features
#DISPLAY & ANIMATION
LCD Density
Toast icon
Toast Animation
Power menu animation
IME animation
ListView animation
System animation
#STATUS DRAWER
@sunmughan
sunmughan / Droidadda-Watermark.css
Created April 17, 2017 19:00
Droidadda-Watermark
Step 1. Find this code : " <data:post.body/> "
Step 2: Replace the above code with this one :
" <div class='droidaddawatermark'><data:post.body/></div> "
Step 3: Find this code now : " ]]></b:skin> "
Step 4: Paste this code just above the code in step 3 :
.droidaddawatermark { background: transparent url("https://3.bp.blogspot.com/-3jyWRLVoFJA/WO3mDJWDCCI/AAAAAAAAD9w/0xMfxZUKhvgZQLAnfxYImvDAxRimNxsUACLcB/s1600/transparent_text_effect.png") repeat scroll 0% 0% / 200px auto; }
@sunmughan
sunmughan / Nitrogen OS Features.txt
Created April 17, 2017 05:21
Nitrogen OS Features
Nitrogen OS 6.0.1 Rom Features
Status Bar:
- Clock and date position in status bar
- Battery style settings;
- Bluetooth device battery level in status bar;
- Network traffic;
- Adjust brightness by sliding across the status bar;
- Input method selector notification.