This file contains 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
.btn { | |
display: block; | |
height: 50px; | |
width: 200px; | |
text-align: center; | |
margin: 150px 20px 10px 20px; | |
vertical-align: middle; | |
padding: 10px; | |
text-transform: uppercase; |
This file contains 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
<add key="formTitle" value="Categories"/> | |
<add key="masterTable" value="Product_Categories"/> | |
<add key="detailTable" value="Products"/> | |
<add key="foreignkey" value="product_category_code"/> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Spintax Spinner</title> | |
</head> | |
<body> | |
<script> | |
var SPINTAX_PATTERN = /\{[^"\r\n\}]*\}/; | |
var spin = function (spun) { |
This file contains 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
'use strict'; | |
//ToasterService Dependency | |
app.factory('HttpService', ['$q', '$http', 'ToastrService', function ($q, $http, ToastrService) { | |
var HTTP_STATUS_CODES = { | |
BAD_REQUEST: 400, | |
NOT_FOUND: 404 | |
}; | |
var request = function (method, url, data) { | |
var deferred = $q.defer(); |
This file contains 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
// In production, we register a service worker to serve assets from local cache. | |
// This lets the app load faster on subsequent visits in production, and gives | |
// it offline capabilities. However, it also means that developers (and users) | |
// will only see deployed updates on the "N+1" visit to a page, since previously | |
// cached resources are updated in the background. | |
// To learn more about the benefits of this model, read https://goo.gl/KwvDNy. | |
// This link also includes instructions on opting out of this behavior. |
This file contains 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 express = require('express'); | |
var graphqlHTTP = require('express-graphql'); | |
var { buildSchema } = require('graphql'); | |
// Construct a schema, using GraphQL schema language | |
var schema = buildSchema(` | |
type Query { | |
quoteOfTheDay: String | |
random: Float! | |
rollThreeDice: [Int] |
This file contains 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
let URL = "https://example.com/api"; | |
fetch(URL, { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
'Accept': 'application/json', | |
}, | |
body: JSON.stringify({query: "{ hello }"}) | |
}) |
This file contains 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
[class*=ng-tooltip--] { | |
position: relative; | |
display: inline-block; | |
cursor: pointer; | |
} | |
[class*=ng-tooltip--]:after, [class*=ng-tooltip--]:before { | |
position: absolute; | |
-webkit-transform: translate3d(0,0,0); | |
-moz-transform: translate3d(0,0,0); | |
transform: translate3d(0,0,0); |
This file contains 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
// Author: George Brata | |
// Based on "Simple Instagram Like Bot" by JoelDare | |
// https://www.joeldare.com/wiki/simple_instagram_like_bot | |
// INSTRUCTIONS: | |
// Make sure you are on the Instagram Paginated Like-Page - it looks like this: https://imgur.com/a/KB174 | |
// Open Developer Tools Console and paste this entire script | |
//-------- | |
// Now Press: |
This file contains 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
<!DOCTYPE html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>CSS-only thermometer</title> | |
<meta name="description" content="" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="apple-touch-icon" href="apple-touch-icon.png" /> |
OlderNewer