Skip to content

Instantly share code, notes, and snippets.

<cfcomponent extends="taffy.core.resource" taffy:uri="/students">
<cffunction name="get">
<cfset var local = {} />
<cfquery name="local.qGetStudents">SELECT * FROM tpcdba01.tpc_static_name_value</cfquery>
<cfreturn representationOf( local.qGetStudents ) />
</cffunction>
</cfcomponent>
component extends="taffy.core.api" {
this.name = hash(getCurrentTemplatePath());
this.SessionManagement = true;
this.datasource = "abc";
variables.framework = {};
function onApplicationStart(){
return super.onApplicationStart();
<cfcomponent extends="taffy.core.resource" taffy:uri="/students">
<cffunction name="get">
<cfreturn representationOf( "hello" ) />
</cffunction>
</cfcomponent>
/*
//Confirm page leave if the form is dirty
$scope.$on('$locationChangeStart', function( event ) {
if($scope.addTaxEntryForm.$dirty) {
var answer = confirm("Are you sure you want to leave this page?")
if (!answer) {
event.preventDefault();
}
}
});
//http://jsfiddle.net/LXp4h/
<script>
select option {
color: black;
}
select option:first-child {
color: grey;
}
select.empty {
<style>
greenText{
color:green; }
.blueText{ color:blue; }
.redText{ color:red; }
</style>
<script>
var a = [
{ name:"string 1", value:"this", other: "that" },
{ name:"aijaz", value:"this", other: "that" },
{ name:"reyaz", value:"this", other: "that" }
];
var name = 'aijaz1';
var obj = a.filter(function ( obj ) {
return obj.name === name;
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css">
<script type='text/javascript' src="http://code.angularjs.org/1.0.3/angular.min.js"></script>
</head>
<body ng-app='myApp'>
<div ng-controller="myCtrl">
@shaik2many
shaik2many / bootstrap-tabbable.html
Created November 23, 2015 20:09
bootstrap-tabbable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<!doctype html>
<html ng-app>
<head>
<style>
[ng-cloak], .ng-cloak {
display: none !important;
}
.red {
color: red;