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 AppRouter = Backbone.Router.extend({ | |
| routes:{ | |
| "products.html":"products" | |
| } | |
| }); | |
| Backbone.history.start(); | |
| var NavView = Backbone.View.extend({ | |
| el:"nav", | |
| render: function(){ | |
| var template_html = jQuery("#nav_template").html(); |
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
| /* | |
| * ZML: Zero Markup Language dot js | |
| * This script defines BasrTag function that | |
| * parents all html tags. "<div>" being the default tag | |
| * Author: Mark Davis | |
| */ | |
| var Zm = { | |
| Utils : { | |
| appendToBody: function(zm_content){ |
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
| module.exports = function(title, content){ | |
| var zm = require("zm").zm; | |
| var html = new zm.BaseTag().tag("html"); | |
| var head = new zm.BaseTag().tag("head"); | |
| head.addContent(new zm.BaseTag().tag("link").setAttr("href", "style.css").setAttr("type", "text/css").setAttr("rel","stylesheet")); | |
| html.addContent(head); | |
| var body = new zm.BaseTag().tag("body"); | |
| // here is where content is injected | |
| body.akon(new zm.Div(content).setAttr("id","main")); |
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
| function getAjax(){ | |
| var xmlhttp; | |
| if (window.XMLHttpRequest) | |
| {// code for IE7+, Firefox, Chrome, Opera, Safari | |
| xmlhttp=new XMLHttpRequest(); | |
| } | |
| else | |
| {// code for IE6, IE5 | |
| xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); | |
| } |
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 MailGun = function(configObj){ | |
| var mailgunKey = process.env.MAILGUN_KEY || configObj.apiKey; | |
| this.auth = "api:" + mailgunKey; | |
| this.hostname = "api.mailgun.net"; | |
| this.toArray = []; | |
| this.text = "default text"; | |
| this.html = ""; | |
| this.subject = configObj.subject || "No Subject"; | |
| this.from = configObj.from || ""; | |
| this.domain = configObj.domain; |
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
| module.exports = function(arr,callback){ | |
| var groupByObj = {}; | |
| if(arr.length == 0){ | |
| callback(groupByObj); | |
| } | |
| var count = 0; | |
| arr.forEach(function(val){ |
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 color_picker_colors = { | |
| "#AAFFAA": { | |
| "dist": 25.45584412271571, | |
| "closest": { | |
| "url": "http://en.wikipedia.org/wiki/Spring_green_(color)#Mint_green", | |
| "r": 152, | |
| "b": 152, | |
| "name": "Mint green", | |
| "g": 255 | |
| }, |
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 { Component, OnInit } from '@angular/core'; | |
| import { Observable } from 'rxjs'; | |
| @Component({ | |
| selector: 'app-one', | |
| template: `<ol> | |
| <li *ngFor="let planet of planets$ | async"> {{ planet }} </li> | |
| </ol> | |
| `, | |
| styleUrls: ['./one.component.css'] |
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
| package sample; | |
| public class DBColumn implements DBItem { | |
| private String columnName; | |
| private String columnTypeName; | |
| private int columnType; | |
| private boolean primaryKey; | |
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
| { | |
| "name": "dexergon64", | |
| "vendorProductId": 808452096, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_ESC", | |
| "KC_Q", | |
| "KC_W", | |
| "KC_E", |
OlderNewer