This file contains 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
<!doctype html> | |
</html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<p>Ссылка: <input id="link" type="text" name="link" /> //пример: https://drive.google.com/folderview?id=0B6DzV6aI-G3Vd093azJTUGVaYVU&usp=sharing</p> | |
<button onclick="update()" /> Получить новую ссылку</button> | |
<h3 id="res"></h3> |
This file contains 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
'use strict' | |
var express = require('express'), | |
http = require('http'), | |
Bot = require('messenger-bot'); | |
const Wit = require('node-wit').Wit; | |
let bot = new Bot({ | |
token: '', | |
verify: '', |
This file contains 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": "xml-products", | |
"version": "0.1", | |
"license": "MIT", | |
"main": "products.js", | |
"ignore": [], | |
"dependencies": { | |
"angular":"latest", | |
"angular-xml": "latest", | |
"x2js": "latest" |
This file contains 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
'use strict'; | |
angular.module('products', ['xml']) | |
.config(function ($httpProvider) { | |
$httpProvider.interceptors.push('xmlHttpInterceptor'); | |
}) | |
.controller('ProductCtrl',function ($scope, $http) { | |
$http.get('goods.xml').success(function (data) { | |
$scope.offers = data.yml_catalog.shop.offers.offer; |
This file contains 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
<!doctype html> | |
<html ng-app="products"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Products</title> | |
<link rel="stylesheet" href="materialize.min.css"> | |
<script src="bower_components/angular/angular.min.js"></script> | |
<script src="bower_components/x2js/xml2json.min.js"></script> | |
<script src="bower_components/angular-xml/angular-xml.min.js"></script> | |
<script src="products.js"></script> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE yml_catalog SYSTEM "shops.dtd"> | |
<yml_catalog date="2016-03-04 17:35"> | |
<shop> | |
<name>GdeSlon.ru</name> | |
<url>http://www.gdeslon.ru/</url> | |
<currencies> | |
<currency id="RUR" rate="1"/> | |
</currencies> | |
<categories> |
This file contains 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
require 'mechanize' | |
mechanize = Mechanize.new | |
page = mechanize.get('https://www.safaribooksonline.com/accounts/login/') | |
form = page.forms.first | |
form['email'] = 'your mail' | |
form['password1'] = 'your pass' | |
page = form.submit |
This file contains 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
~/workspace (master) $ rails routes | |
Prefix Verb URI Pattern Controller#Action | |
new_admin_user_session GET /admin/login(.:format) active_admin/devise/sessions#new | |
admin_user_session POST /admin/login(.:format) active_admin/devise/sessions#create | |
destroy_admin_user_session DELETE|GET /admin/logout(.:format) active_admin/devise/sessions#destroy | |
new_admin_user_password GET /admin/password/new(.:format) active_admin/devise/passwords#new | |
edit_admin_user_password GET /admin/password/edit(.:format) active_admin/devise/passwords#edit | |
admin_user_password PATCH /admin/password(.:format) active_admin/devise/passwords#update | |
PUT /admin/password(.:format) active_admin/devise/passwords#update | |
This file contains 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
F | |
Failures: | |
1) Header check items on | |
Failure/Error: visit root_path | |
NameError: | |
undefined local variable or method `root_path' for #<RSpec::ExampleGroups::Header:0x00000003626508> | |
# ./spec/features/header_spec.rb:6:in `block (2 levels) in <top (required)>' |
This file contains 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 request = require('sync-request'); | |
var express = require('express'); | |
var prequest = require('request-promise'); | |
var urlencode = require('urlencode'); | |
var TelegramBot = require('node-telegram-bot-api'); | |
var bodyParser = require('body-parser'); | |
var app = express(); |
OlderNewer