Skip to content

Instantly share code, notes, and snippets.

View tgvrssanthosh's full-sized avatar

Santhosh Venkata Rama Siva Thanakala Gani tgvrssanthosh

  • Linkedin
  • Bangalore
View GitHub Profile
{{this.hello}}
<button {{on "click" this.incrementVal}}>Increment</button>
import Component from '@ember/component';
export default class extends Component {
willDestroyElement() {
console.log('Destroy called on Child');
this.sendAction('sampleAction');
}
}
import Component from '@glimmer/component';
export default class extends Component {
@action
changeStatus() {
return (this.beforeChangeStatus ? this.beforeChangeStatus() : Promise.resolve()).then(window.alert.bind(window, 'hello'));
}
}
import Component from '@glimmer/component';
import layout from 'templates/components/my-component';
export default class extends Component {
layout= layout;
init() {
super.init(...arguments);
console.log('Component Init');
}
import Ember from 'ember';
let ind = 0;
export default Ember.Component.extend({
actions: {
changeX() {
this.set('x', ++ind);
}
}
});
@tgvrssanthosh
tgvrssanthosh / highcharts_2.3.5.js
Created April 25, 2013 06:24
highcharts_2.3.5
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v2.3.5 (2012-12-19)
*
* (c) 2009-2012 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
@tgvrssanthosh
tgvrssanthosh / highcharts_2.2.3.js
Created April 24, 2013 14:11
highcharts 2.2.3
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v2.2.3 (2012-05-07)
*
* (c) 2009-2011 Torstein H�nsi
*
* License: www.highcharts.com/license
*/
@tgvrssanthosh
tgvrssanthosh / santhosh_highcharts_3.0.js
Last active December 15, 2015 12:39
my own highcharts gist for experimentations.
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.0 (2013-03-22)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
@tgvrssanthosh
tgvrssanthosh / TwitterScrollSimulation.htm
Created September 26, 2011 13:42
Twitter Scroll Simulation
<!DOCTYPE html>
<html>
<head>
<title>Twitter Scroll</title>
<style type="text/css">
#parentContent
{
height:250px;
width:250px;
position:relative;
@tgvrssanthosh
tgvrssanthosh / googleSearchResultsNodeJS.js
Created September 26, 2011 13:39
Google Search Results Using nodejs
var http = require('http'),
url = require('url'),
sys = require('sys'),
apricot = require("apricot").Apricot;
http.createServer (function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var urlObj = url.parse (req.url, true);
if (urlObj.query["q"])
{
var options = {