This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import supbase, dayjs and apiService | |
function | |
---- | |
const result = await apiService.fetchDataWithDate("TABLE NAME", { | |
field: "d", // options: d for days, w for week, M for month | |
value: 7, // number value. Given example will fetch rows within 7 days from current date | |
}); | |
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Required | |
"manifest_version": 2, | |
"name": "My Extension", | |
"version": "versionString", | |
// Recommended | |
"default_locale": "en", | |
"description": "A plain text description", | |
"icons": {...}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.createElement("script"); | |
script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#source : https://github.com/ServusJon/PrototypeWithFramerjs | |
screenSwitch = (current,next) -> | |
next.animate | |
properties: | |
x: 0 | |
curve: "ease-out" | |
time: 0.15 | |
animationHideScreen = new Animation | |
layer: current | |
properties: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//config.js | |
for every state you want to check if user has logged in or not set requireLogin to true. | |
..., | |
data : { | |
requireLogin : true | |
}, | |
..... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<title>Responsive HTML Email Template</title> | |
<!--End New Content Block Wrapper Row--> | |
<table id="bodyTable" width="100%" border="0" cellspacing="0" cellpadding="0"><!--New Content Block Wrapper Row--> | |
<tbody> | |
<tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.getParameterByName = function(name) { | |
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
var regex = new RegExp(regexS); | |
var results = regex.exec(window.location.href); | |
if (results == null) return ""; | |
else return decodeURIComponent(results[1].replace(/\+/g, " ")); | |
} | |
</script> |
NewerOlder