Skip to content

Instantly share code, notes, and snippets.

@kevinSuttle
kevinSuttle / meta-tags.md
Last active July 10, 2024 09:39 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@facultymatt
facultymatt / roles_invesitgation.md
Last active April 16, 2024 09:31
Roles and permissions system for Nodejs
@umidjons
umidjons / angular-compile-dynamic-html.md
Created August 12, 2014 05:14
Compile dynamic template from outside of angular.

Compile dynamic template from outside of angular

I want to load dynamic HTML content via AJAX, then compile it, because it contains angular directives.

<!DOCTYPE html>
<html ng-app="app">
<head>
//jweixin-1.0.0.js
! function(g, initFunc) {
'function' == typeof define && (define.amd || define.cmd) ? define(function() {
return initFunc(g)
}) : initFunc(g, true)
}(this,
function(glob, setGlobal) {
function invokeCmd(cmd, param, callbackObj) {
glob.WeixinJSBridge ? WeixinJSBridge.invoke(cmd, normParameter(param), function(res) {
completeBridgeInteraction(cmd, res, callbackObj);
@nnmer
nnmer / AddTranslatedFieldSubscriber.php
Last active May 22, 2019 09:20 — forked from noetix/TranslatedFieldType.php
Translated Field Type for Symfony 2.8
<?php
namespace Acme\DemoBundle\Form\EventListener;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Form\FormError;
@jpalala
jpalala / react_samples_list.md
Last active April 2, 2023 22:22 — forked from leecade/react_samples_list.md
React Samples List