(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| --type-add=css=.sass,.less,.scss | |
| --type-add=ruby=.rake,.rsel,.builder,.thor | |
| --type-add=html=.haml,.html.erb,.html.haml | |
| --type-add=js=.js.erb,.coffee | |
| --type-set=cucumber=.feature | |
| --type-set=c=.c,.cpp,.ino,.pde,.h | |
| --ignore-dir=vendor | |
| --ignore-dir=log | |
| --ignore-dir=tmp | |
| --ignore-dir=doc |
| DSYM_ZIP_FPATH="/tmp/$DWARF_DSYM_FILE_NAME.zip" | |
| # create dSYM .zip file | |
| echo "Compressing .dSYM to ${DSYM_ZIP_FPATH} ..." | |
| test -e "${DSYM_SRC}" && (echo "Creating zip of dSYM file" && /usr/bin/zip -r "${DSYM_ZIP_FPATH}" "${DSYM_SRC}" -dc |
| Select all and delete (actually move to buffer) | |
| :%d | |
| Select all and copy to buffer | |
| :%y | |
| Use p to paste the buffer. |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| from django.core.exceptions import PermissionDenied | |
| from django.contrib import admin | |
| from django.contrib.admin.actions import delete_selected as delete_selected_ | |
| def delete_selected(modeladmin, request, queryset): | |
| if not modeladmin.has_delete_permission(request): | |
| raise PermissionDenied | |
| if request.POST.get('post'): | |
| for obj in queryset: |
| #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |
In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.
The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; | |
| public class FuturesA { | |
| public static void run() throws Exception { |
| import java.util.concurrent.CountDownLatch; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.concurrent.atomic.AtomicReference; | |
| public class CallbackB { | |
| /** |
| from django.http import HttpResponse | |
| from django.utils.functional import wraps | |
| from django.template.context import RequestContext | |
| from django.template.loader import get_template | |
| from django.utils import simplejson as json | |
| def dict_to_template_view(**template_args): | |
| """ | |
| Takes a function that returns a dict and decorates it into a template-rendering view | |
| """ |