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
<?php | |
/** | |
* Send form page | |
*/ | |
function rwpm_send() | |
{ | |
global $wpdb, $current_user; | |
?> | |
<div class="wrap"> | |
<h2><?php _e( 'Send Private Message', 'pm4wp' ); ?></h2> |
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
private void InstalledLang() | |
{ | |
using (SpeechSynthesizer synth = new SpeechSynthesizer()) | |
{ | |
// Output information about all of the installed voices. | |
Console.WriteLine("Installed voices -"); | |
foreach (InstalledVoice voice in synth.GetInstalledVoices()) | |
{ | |
VoiceInfo info = voice.VoiceInfo; |
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
private static Skeleton GetClosestSkeleton(Skeleton[] skeletons) | |
{ | |
return skeletons | |
.Where(skeleton => skeleton.TrackingState == SkeletonTrackingState.Tracked) | |
.OrderBy(skeleton => skeleton.Position.Z).FirstOrDefault(); | |
} |
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
int _trackedSkeletonId = 0; | |
Skeleton _currentSkeleton; | |
void sensor_SkeletonFrameReady(object sender, SkeletonFrameReadyEventArgs e) | |
{ | |
_currentSkeleton = null; | |
using (SkeletonFrame frame = e.OpenSkeletonFrame()) | |
{ | |
if (frame == null) |
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
#How to calculate Manhattan Distance in R? | |
print("How to calculate Manhattan Distance in R?") | |
fa <- c(5,2,1,4) | |
fb <- c(5,5,4,2) | |
fm <- matrix(c(fa,fb), byrow=T, nrow=2) | |
col_names_vectors <- c("U1", "U2", "U3", "U4") | |
row_names_vectors <- c("FilmA","FilmB") |
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
#How to calculate Euclidean Distance in R? | |
print("How to calculate Euclidean Distance in R?") | |
fa <- c(5,2,1,4) | |
fb <- c(5,5,4,2) | |
fm <- matrix(c(fa,fb), byrow=T, nrow=2) | |
col_names_vectors <- c("U1", "U2", "U3", "U4") | |
row_names_vectors <- c("FilmA","FilmB") |
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
Digits and (), min 9 max 20 | |
^[0-9()]{9,20}$ | |
Phone number | |
@"^([+]{1}[0-9]{2})?([ -]{1})?[0-9]{3}([ -]{1})?[0-9]{3}([ -]{1})?[0-9]{3}$" |
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
<svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="highcharts-root" style="font-family:'lucida grande', 'lucida sans unicode', arial, helvetica, sans-serif;font-size:12px;" xmlns="http://www.w3.org/2000/svg" width="1200" viewBox="0 0 1200 800" height="800"><desc>Created with Highcharts 5.0.0</desc><defs><clipPath id="highcharts-9"><rect x="0" y="0" width="1145" height="676" fill="none"></rect></clipPath></defs><rect fill="#ffffff" class="highcharts-background" x="0" y="0" width="1200" height="800" rx="0" ry="0"></rect><rect fill="none" class="highcharts-plot-background" x="45" y="49" width="1145" height="676"></rect><g class="highcharts-grid highcharts-xaxis-grid "><path fill="none" class="highcharts-grid-line" d="M 104.5 49 L 104.5 725" opacity="1"></path><path fill="none" class="highcharts-grid-line" d="M 165.5 49 L 165.5 725" opacity="1"></path><path fill="none" class="highcharts-grid-line" d="M 225.5 49 L 225.5 725" opacity="1"></path><path fill="none" class="highcharts-grid-line" d="M 2 |
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
function scroll(){ window.scrollTo(0,document.body.scrollHeight); console.log(document.body.scrollHeight); }; setInterval(scroll, 3000); |
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
USE YourDatabase | |
GO | |
SELECT db.[name] AS [DatabaseName] | |
,id.[object_id] AS [ObjectID] | |
,OBJECT_NAME(id.[object_id], db.[database_id]) AS [ObjectName] | |
,id.[statement] AS [FullyQualifiedObjectName] | |
,id.[equality_columns] AS [EqualityColumns] | |
,id.[inequality_columns] AS [InEqualityColumns] | |
,id.[included_columns] AS [IncludedColumns] |
OlderNewer