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
var baseUrl= 'http://127.0.0.1:8000/api/v1/todo/' ; | |
angular.module('todo', ['ngRoute']) | |
.config(function($routeProvider){ | |
$routeProvider | |
.when('/', { | |
templateUrl : 'partials/home.html', | |
controller : 'home' | |
}) | |
.when('/todo', { |
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
var baseUrl= 'http://127.0.0.1:8000/api/v1/todo/' ; | |
angular.module('todo', ['ngRoute']) | |
.config(function($routeProvider){ | |
$routeProvider | |
.when('/', { | |
templateUrl : 'partials/home.html', | |
controller : 'home' | |
}) | |
.when('/todo', { |
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 subprocess | |
import os | |
import getpass | |
def hiren(): | |
raw_mounted_dir = subprocess.check_output(["volname", "/dev/sr0"]) | |
mounted_dir = raw_mounted_dir.strip().decode('ascii').replace("_", " ") | |
print(os.listdir("/media/" + getpass.getuser() + "/" + mounted_dir)) |
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 subprocess | |
import os | |
import getpass | |
def hiren(): | |
raw_mounted_dir = subprocess.check_output(["volname", "/dev/sr0"]) | |
mounted_dir = raw_mounted_dir.strip().decode('utf-8').replace("_", " ") | |
list_string = list(mounted_dir) | |
counter = 0 |
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
from Crypto.Cipher import AES | |
import hashlib | |
#source https://www.youtube.com/watch?v=lsflaKpeB7Q | |
def pad(s): | |
return s + ((16-len(s) % 16) * "{") | |
def digest(key): |
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
// Changes XML to JSON | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
if (xml.nodeType == 1) { // element | |
// do attributes | |
if (xml.attributes.length > 0) { | |
obj["@attributes"] = {}; |
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
if (Meteor.isClient) { | |
Template.hello.greeting = function () { | |
return "Welcome to y."; | |
}; | |
Template.hello.events({ | |
'click input' : function () { | |
// template data, if any, is available in 'this' | |
Meteor.call("hiren",function (err, data) { | |
console.log(data); |
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
<head> | |
<title>x</title> | |
</head> | |
<body> | |
{{> hello}} | |
</body> | |
<template name="hello"> | |
<h1>Hello World!</h1> |
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
{ | |
"name": "name example", | |
"description": "desc", | |
"homepage":"as", | |
"author" : "xyz", | |
"version" : "0.1", | |
"packages": {} | |
} |
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
Package.describe({ | |
summary: "summary etc" | |
}); | |
Package.on_use(function (api){ | |
api.use(["http"],["server"]); | |
api.add_files("nisha.js","server"); | |
}); |