Skip to content

Instantly share code, notes, and snippets.

Ankita Kumari ankita-kumari

Block or report user

Report or block ankita-kumari

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ankita-kumari
ankita-kumari / mongodb.md
Created Nov 4, 2015 — forked from artieziff/mongodb.md
MongoDb & Python Essentials
View mongodb.md

##MONGODB & PYTHON

###Ubuntu Install

sudo apt-get install mongodb
pip install pymongo

Table - Collection
Column - Property
Row - Document

@ankita-kumari
ankita-kumari / introrx.md
Created Oct 28, 2015 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@ankita-kumari
ankita-kumari / .gitignore
Last active Aug 29, 2015 — forked from adamgit/.gitignore
.gitignore file for Xcode4 / OS X Source projects
View .gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.5
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
View gist:489417b42c2617b9fa0f

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.

Editing

Ctrl+⇧+K delete line
Ctrl+↩ insert line after
Ctrl+⇧+↩ insert line before
Ctrl+⇧+↑ move line (or selection) up
View gist:d572f4892817729856b2
<?xml version="1.0" encoding="UTF-8"?>
<matches software="LanguageTool" version="2.8" buildDate="2014-12-30 13:12">
<language shortname="en-US" name="English (US)"/>
<error fromy="0" fromx="0" toy="0" tox="1" ruleId="UPPERCASE_SENTENCE_START" msg="This sentence does not start with an uppercase letter" replacements="A" context="a simple test" contextoffset="0" offset="0" errorlength="1" category="Capitalization" locqualityissuetype="typographical"/>
</matches>
@ankita-kumari
ankita-kumari / languagetool-server-error
Created May 13, 2015
Error that I get when trying to run the HTTP server in LanguageTool.
View languagetool-server-error
ankita @ Vhagar ~/Codes/languagetool-test/languagetool-clean/languagetool/languagetool-server/target $ java -cp languagetool-server-3.0-SNAPSHOT.jar org.languagetool.server.HTTPServer --port 8081
WARNING: running in HTTP mode, consider using SSL by running org.languagetool.server.HTTPSServer instead
Exception in thread "main" java.lang.NoClassDefFoundError: org/languagetool/language/LanguageIdentifier
at org.languagetool.server.LanguageToolHttpHandler.<init>(LanguageToolHttpHandler.java:84)
at org.languagetool.server.HTTPServer.<init>(HTTPServer.java:99)
at org.languagetool.server.HTTPServer.main(HTTPServer.java:144)
Caused by: java.lang.ClassNotFoundException: org.languagetool.language.LanguageIdentifier
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
@ankita-kumari
ankita-kumari / diable-remove-button
Created Mar 25, 2015
This leads to the button to become disabled when the page is rendered but with subsequent additions it does not become clickable.
View diable-remove-button
ve.ui.MWTransclusionDialog.prototype.getPageFromPart = function ( part ) {
var page = ve.ui.MWTransclusionDialog.super.prototype.getPageFromPart.call( this, part );
if ( !page && part instanceof ve.dm.MWTransclusionContentModel ) {
return new ve.ui.MWTransclusionContentPage( part, part.getId(), { $: this.$ } );
}
var parts = this.transclusionModel.getParts();
if(parts.length === 1 && part instanceof ve.dm.MWTemplatePlaceholderModel)
{
page.removeButton.setDisabled( true );
}
View config-ssh
#changes to allow ssh for git
Host github.com
Hostname ssh.github.com
Port 443
Host gerrit.wikimedia.org
Hostname ssh.gerrit.wikimedia.org
Port 29418
User ankita-kumari
TCPKeepAlive yes
IdentityFile "/Users/Vhagar/.ssh/id_rsa"
View git-update-error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant git-update
==> Updating /srv/jobrunner ...
fatal: ref HEAD is not a symbolic ref
expr: syntax error
Previous HEAD position was 5c927f9... trim() the stderr output too
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Already up-to-date.
==> Updating /srv/parsoid ...
@ankita-kumari
ankita-kumari / error-log
Created Mar 11, 2015
error log for : vagrant destroy && vagrant config nfs_shares no && vagrant up
View error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant destroy && vagrant config nfs_shares no && vagrant up
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Removing puppet created files...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'lsb_check' provisioner...
==> default: Running cleanup tasks for 'puppet' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'trusty-cloud'...
==> default: Matching MAC address for NAT networking...
You can’t perform that action at this time.