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
<h1>{{post.title}}</h1> | |
{{post.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
angular.module('app', ['ngRoute']) | |
.config(function($routeProvider, $locationProvider) { | |
$locationProvider.html5Mode(true); | |
$routeProvider | |
.when('/', { | |
templateUrl: myLocalized.partials + 'main.html', | |
controller: 'Main' | |
}) | |
.when('/:ID', { |
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
<h1>{{post.title}}</h1> | |
<div ng-bind-html="post.content"></div> |
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
<?php | |
function my_scripts() { | |
wp_register_script( | |
'angularjs', | |
get_stylesheet_directory_uri() . '/bower_components/angular/angular.min.js' | |
); | |
wp_register_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
angular.module('app', ['ngRoute', 'ngSanitize']) | |
// ... |
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
scripts.js |
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
<h1>{{post.title}}</h1> | |
<div ng-bind-html="post.content | toTrusted"></div> |
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
<template> | |
<svg width="800px" height="800px" version="1.1" | |
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"> | |
<g class="port_output" style="pointer-events: all;"> | |
<rect fill="#ddd" stroke-width="1.5" | |
:x="listData['001'].x" :y="listData['001'].y" | |
:width="listData['001'].width" :height="listData['001'].height" | |
:transform="listData['001'].transform" | |
style="vector-effect: non-scaling-stroke" | |
class="port" @click="elementClick($event,'001')" stroke-dasharray="none" stroke="#000"></rect> |
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
<template> | |
<div class="container"> | |
<div class="wrap"> | |
<div class="d1" @mousedown="eleDown" :style="style"> | |
</div> | |
</div> | |
<!--drr--> |
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 requests | |
from datetime import datetime | |
import time | |
import urllib | |
import re | |
import os | |
import sys | |
from bs4 import BeautifulSoup | |
from openpyxl import Workbook |