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
| grammar CFunction; | |
| function : retType name args ; | |
| args : '(' arg (',' arg)* ')' ; | |
| arg | |
| : 'double' name # SCALAR_ARG | |
| | 'double' '*' name # ARRAY_ARG |
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
| <UserSettings><ApplicationIdentity version="16.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="General" RegisteredName="General" PackageName="Visual Studio Environment Package"> | |
| <PropertyValue name="AnimationSpeed">7</PropertyValue> | |
| <PropertyValue name="AutoAdjustExperience">true</PropertyValue> | |
| <PropertyValue name="AutohidePinActiveTabOnly">false</PropertyValue> | |
| <PropertyValue name="CloseButtonActiveTabOnly">true</PropertyValue> | |
| <PropertyValue name="MRUListContainsNItems">10</PropertyValue> | |
| <PropertyValue name="ShowStatusBar">true</PropertyValue> | |
| <PropertyValue name="WindowMenuContainsNItems">10</PropertyValue> | |
| </ToolsOptionsSubCategory><ToolsOptionsSubCategory name="ProjectsAndSolution" RegisteredName="ProjectsAndSolution" PackageName="Visual Studio Environment Package"><PropertyValue name="ProjectsLocation">%vsspv_user_appdata%\Source\Repos</PropertyValue><PropertyValue name="PromptForRenameSymbol">true</P |
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
| #AND | |
| <b:if cond='data:blog.pageType == "index"'> | |
| <b:if cond='data:blog.searchQuery'> | |
| <!--search_page AND index_page--> | |
| </b:if> | |
| </b:if> | |
| #OR |
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 () { | |
| 'use strict'; | |
| var sinon = require('sinon'); | |
| var keys = ['closest', 'addClass', 'children', 'parent', 'find', 'html', | |
| 'remove', 'text', 'ready', 'unveil', 'removeAttr', 'removeClass', 'scroll', | |
| 'val', 'height', 'css', 'delay', 'queue', 'dequeue', 'attr']; | |
| function JQueryStub (args) { | |
| var self = this; |
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 a prepared statement for all the INSERTs | |
| PreparedStatement prepared = session.Prepare("INSERT INTO sometable (column1, column2) VALUES (?, ?)"); | |
| // Create a list to hold in flight requests | |
| var requestList = new List<Task>(); | |
| // Assume you have some collection of data that needs to be inserted | |
| foreach(var data in dataToInsert) | |
| { | |
| // Provide data values to be inserted with our prepared statement for this piece of data |
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
| using System; | |
| using System.Buffers; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>google_maps_custom_point</title> | |
| <style> | |
| body { | |
| margin: 0; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace longestCommonSubstring | |
| { | |
| class Program | |
| { |
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
| public static class Permutations | |
| { | |
| public static IEnumerable<IEnumerable<T>> Get<T>(IEnumerable<T> set, IEnumerable<T> subset = null) | |
| { | |
| if (subset == null) subset = new T[] { }; | |
| if (!set.Any()) yield return subset; | |
| for (var i = 0; i < set.Count(); i++) | |
| { | |
| var newSubset = set.Take(i).Concat(set.Skip(i + 1)); |
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
| import java.util.Scanner; | |
| public class QueueJakes { | |
| public static void main (String [] args) { | |
| Scanner myscan = new Scanner(System.in); | |
| System.out.print("Enter max queue size: "); | |
| int qSize = myscan.nextInt(), choice; | |
| Queue q = new Queue(qSize); |
NewerOlder