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 TelegramBot = require('node-telegram-bot-api'); | |
var superscript = require("superscript"); | |
var mongoose = require("mongoose"); | |
var facts = require("sfacts"); | |
var factSystem = facts.create('telegramFacts'); | |
mongoose.connect('mongodb://localhost/superscriptDB'); | |
var TopicSystem = require("superscript/lib/topics/index")(mongoose, factSystem); | |
// TopicSystem.importerFile('./data.json', function(){ }) |
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
replaceInManifest = {variant, fromString, toString -> | |
def flavor = variant.productFlavors.get(0) | |
def buildtype = variant.buildType | |
def manifestFile = "$buildDir/manifests/${flavor.name}/${buildtype.name}/AndroidManifest.xml" | |
def updatedContent = new File(manifestFile).getText('UTF-8').replaceAll(fromString, toString) | |
new File(manifestFile).write(updatedContent, 'UTF-8') | |
} |
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
/*global config:true, task:true*/ | |
config.init({ | |
pkg: '<json:package.json>', | |
meta: { | |
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | |
'<%= template.today("m/d/yyyy") %>\n' + | |
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + | |
'* Copyright (c) <%= template.today("yyyy") %> <%= pkg.author.name %>;' + | |
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' | |
}, |
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
# Opens the github page for the current git repository and branch in your browser | |
# | |
# based on this: http://jasonneylon.wordpress.com/2011/04/22/opening-github-in-your-browser-from-the-terminal/ | |
# + works with current branch | |
# + pass file: gh foo/bar.txt #=> https://github.com/o/o/tree/master/foo/bar.txt | |
# + pass commit sh: gh 5116fba #=> https://github.com/o/o/commits/5116fba | |
# | |
function gh() { | |
giturl=$(git config --get remote.origin.url) | |
if [ "$giturl" == "" ] |