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
    
  
  
    
  | // Copied from: https://ethfiddle.com/09YbyJRfiI | |
| // CryptoKitties Source code | |
| // Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code | |
| pragma solidity ^0.4.11; | |
| /** | |
| * @title Ownable | |
| * @dev The Ownable contract has an owner address, and provides basic authorization control | 
  
    
      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
    
  
  
    
  | index: | |
| number_of_shards: 3 | |
| number_of_replicas: 0 # not for production | |
| analysis: | |
| char_filter: | |
| ru: | |
| type: mapping | |
| mappings: ['Ё=>Е', 'ё=>е'] | |
| analyzer: | |
| ru_RU: | 
  
    
      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
    
  
  
    
  | ############################################################################### | |
| # The MIT License | |
| # | |
| # Copyright 2012-2014 Jakub Jirutka <[email protected]>. | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | 
  
    
      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
    
  
  
    
  | /*jshint node:true*/ | |
| 'use strict'; | |
| /** | |
| * This scripts recursively renames every file and directory in the script path | |
| * from camelCase and UpperCamelCase to dash-case | |
| * | |
| * Do a backup before executing this script | |
| * | |
| * @lecense MIT | 
  
    
      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
    
  
  
    
  | # Create background noise profile from mp3 | |
| /usr/bin/sox noise.mp3 -n noiseprof noise.prof | |
| # Remove noise from mp3 using profile | |
| /usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21 | |
| # Remove silence from mp3 | |
| /usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5% | |
| # Remove noise and silence in a single command | 
  
    
      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 request = require('request'); | |
| var fs = require('fs'); | |
| var sox = require('sox'); | |
| var spawn = require('child_process').spawn; | |
| var WATSON_USER = ''; | |
| var WATSON_PASS = ''; | |
| var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize'; | |
  
    
      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
    
  
  
    
  | *Add the toolchain/test PPA* | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo apt-get install g++-4.8 | |
| sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50 | |
| *If you ever want to update symlinks for a future version:* | |
| sudo rm /usr/bin/g++ | |
| sudo ln -s /usr/bin/g++-4.XXX /usr/bin/g++ | 
  
    
      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
    
  
  
    
  | # Ubuntu upstart file at /etc/init/mongodb.conf | |
| pre-start script | |
| mkdir -p /var/lib/mongodb/ | |
| mkdir -p /var/log/mongodb/ | |
| end script | |
| start on runlevel [2345] | |
| stop on runlevel [06] | 
  
    
      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 mongoose = require('./../mongoose'); | |
| var Schema = mongoose.Schema; | |
| var sleep = 1000; | |
| var timer; | |
| var db = mongoose.createConnection(); | |
| db.on('error', function () { | |
| // error on startup | |
| console.error('conn error', arguments); | 
  
    
      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
    
  
  
    
  | requests.put('http://localhost:9200/site/', data=json.dumps({ | |
| 'settings': { | |
| 'analysis': { | |
| 'analyzer': { | |
| 'ru': { | |
| 'type': 'custom', | |
| 'tokenizer': 'standard', | |
| "filter": ['lowercase', 'russian_morphology', 'english_morphology', 'ru_stopwords'], | |
| }, | |
| }, | 
NewerOlder