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
Read your blog post and iam very disappointed ! what is the purpose of that blog post? Internet is something which can be used for good but also for blowing things out of proportion.And this post and even KKs post symbolizes that! I agree that the combined fest is your idea but we trying to implement it and we need all your support not cynical views. | |
The people who persuaded you to write the Post must have also mentioned that we will have Tedx at nitte and also the Princy is happy with our work to grant us a budget upto 15 lacks! Iam sure the good things never came up. | |
About the timing, It was decided initially that the fest would be held in October it was not a sudden decision.And for holding the fest in a later time,right now there are only a few people who are working for the fest all the rest are either busy with their personal life or trying to get Twitter Mileage.Next Sem being very important Sem for us due to placements and projects the number of people who would strive for us would also decrease.An |
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
#This module does all the encryption and decryption using OpenSSL ruby class | |
module EncryptionEngine | |
#encrypt method as the name suggest encrypts 'data' using 'algorithm' with 'key' | |
def encrypt( data, key, algorithm) | |
#Do not encrypt if data is nil | |
if !data.nil? && !data.empty? | |
cipher = OpenSSL::Cipher::Cipher.new algorithm | |
cipher.encrypt |
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
class Hospital < ActiveRecord::Base | |
lambada :certified { where(:certified=>true).joins(:district) } | |
end | |
Hospital.scoped.certified |
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
//Works for 1.1.x versions. 1.0.x is similar and can be figured out using code comments | |
myapp.factory('myHttpResponseInterceptor',['$q','$location',function($q,$location){ | |
return { | |
response: function(response){ | |
return promise.then( | |
function success(response) { | |
return response; | |
}, | |
function error(response) { | |
if(response.status === 401){ |
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
//Works for 1.1.x versions. 1.0.x is similar and can be figured out using code comments | |
myapp.factory('httpRequestInterceptor', function ($cookieStore) { | |
return { | |
request: function (config) { | |
var token = $cookieStore.get("auth"); | |
config.url = URI(config.url).addSearch({'_auth_token':token}).toString(); | |
return config; | |
} | |
}; |
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
// Intercepting HTTP calls with AngularJS. | |
angular.module('MyApp', []) | |
.config(function ($provide, $httpProvider) { | |
// Intercept http calls. | |
$provide.factory('MyHttpInterceptor', function ($q) { | |
return { | |
// On request success | |
request: function (config) { | |
// console.log(config); // Contains the data about the request before it is sent. |
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
<html class="no-js"> | |
<head> | |
<title></title> | |
</head> | |
<body ng-app> | |
<h1>Model Binding Example| Hello World</h1> | |
<p>{{helloworld}}</p> | |
<input type='text' ng-model='helloworld'></input> | |
<script src="angular.js"></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
variable_storing_a_function = Proc.new {|arg1,arg2| puts "First Argument : #{arg1}\nSecond Arguemt #{arg2}"} | |
variable_storing_a_function.call(1,2) | |
def an_example_function(variable1,variable2,&block) | |
sum = variable1+variable2 | |
block.call(sum) | |
end |
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
<span>{{group.members_count}} <ng-pluralize count='group.members_count'. | |
when="{'1': 'Member', | |
'other':'Members'}"></span> |
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
##GeoViz | |
(Arun Ganesh)[https://en.wikipedia.org/wiki/User:Planemad] | |
(Sajjad Anwar)[https://geohacker.in/] | |
##OpenData | |
(Thejesh GN)[https://thejeshgn.com/] | |
##DataJournalism | |
(Avinash Celestine)[http://datastories.in] |
OlderNewer