Tutorial by Examples: f

Wolfram define Mathematica as "The world's definitive system for modern technical computing". A bold statement which is partially true. It's probably not the most predominant (as you have to pay quite a bit for commercial use) system so people use Python or R for example. What it is, is th...
function getGoogleDriveFileById(id) { var file; file = DriveApp.getFileById(id);//Returns a file - The "id" must be a string //One way to manually get a file ID // - Open the file from Google Drive // - The file ID is in the URL in the browsers address bar //https...
Step 1: Create a transition drawable in XML Save this file transition.xml in res/drawable folder of your project. <transition xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/image1"/> <item android:drawable=...
Code in natively compiled function will be transformed into C code and compiled as dll. To create a Native Compiled scalar function you need to: Use standard CREATE FUNCTION syntax Set NATIVE_COMPILATION option in function definition Use SCHEMABINDING option in function definition Instead of...
Native compiled table value function returns table as result. Code in natively compiled function will be transformed into C code and compiled as dll. Only inline table valued functions are supported in version 2016. To create a native table value function you need to: Use standard CREATE FUNCTIO...
Binding a Swift Library in Xamarin.iOS follows the same process for Objective-C as shown in https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/, but with some caveats. A swift class must inherit from NSObject to be binded. Swift compiler will translate class and protoco...
Here we will be creating a Groovy pipeline in Jenkins 2 to do the following steps : Verify every 5 minutes if new code has been commited to our project Checkout code from SCM repo Maven compile of our Java code Run our integration tests and publish the results Here are the steps we will : ...
Place a file like the following in your top level directory. It defines which components to render for which paths import React from 'react'; import { Route, IndexRoute } from 'react-router'; import New from './containers/new-post'; import Show from './containers/show'; import Index from './c...
django-filter is generic system for filtering Django QuerySets based on user selections. The documentation uses it in a function-based view as a product model: from django.db import models class Product(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(...
The following procedure is a generic one which will be used to log all errors in an application to a common error log table. CREATE OR REPLACE PROCEDURE log_errors ( p_calling_program IN VARCHAR2, p_error_code IN INTEGER, p_error_description IN VARCHAR2 ) IS PRAGMA AUTONOMOUS_TRANSAC...
To do this, put the following code in functions.php: function custom_excerpt_more($more) { return '<a href="'. get_permalink($post->ID) . '">Read More</a>'; } add_filter('excerpt_more', 'custom_excerpt_more'); The results should look like this:
In our functions.php function new_excerpt_more( $more ) { return '.....'; } add_filter('excerpt_more', 'new_excerpt_more'); We should get this:
Use the analytical function row_number(): with t as ( select col1 , col2 , row_number() over (order by col1, col2) rn from table ) select col1 , col2 from t where rn between N and M; -- N and M are both inclusive Oracle 12c handles this more easily with OFFSET and FETCH.
TestNG allows defining groups which can include other groups. MetaGroups logically combine one or more group(s) and control the execution of the @Testmethods belonging to those groups. In below example there are various @Test methods belonging to different group(s). Few are specific to particular s...
If you were to hide a link by setting display: none in the CSS then screen readers wouldn’t find it. Instead, we position it absolutely, with clipping. CSS .offscreen { position: absolute; clip: rect(1px 1px 1px 1px); /* for Internet Explorer */ clip: rect(1px, 1px, 1px, 1px); padding: 0; b...
To add ws to your file's simply use: var ws = require('ws');
add_filter('comment_text','before_comment'); add_filter('comment_text','after_comment'); function before_comment($comment_text){ return 'input before comment'.$comment_text; } function after_comment($comment_text){ return $comment_text.'input after comment'; ...
<cfinvoke method="#somePrivateMethodName#"> <cfinvokeargument name="argument1" value="one"> </cfinvoke>
invoke("", somePrivateMethodName, {argument1='one'});
app.use() and middleware can be used for "before" and a combination of the close and finish events can be used for "after". app.use(function (req, res, next) { function afterResponse() { res.removeListener('finish', afterResponse); res.removeListener('clos...

Page 284 of 457