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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
int main(void) { | |
pid_t proc1 = fork(); | |
pid_t proc2 = fork(); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int turn = 0; | |
void some_routine(void) { | |
// Some code here | |
} | |
int critical_section() { |
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
[ | |
{ | |
"name": "John", | |
"id": 1, | |
"expired": false, | |
"locked": false | |
} | |
] |
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
class Graphics { | |
constructor(board) { | |
this.board = board; | |
} | |
circle(x, y, r, fill=false) { | |
this.canvas.beginPath(); | |
this.canvas.arc(x, y, r, 0, 2 * Math.PI); | |
this.canvas.stroke(); | |
if(fill) { |
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
Get-WmiObject -query "select DeviceId from Win32_LogicalDisk" | foreach { Get-WmiObject -query "associators of {Win32_LogicalDisk=`"$($_.DeviceID)`"}"; write-host "-----------------------------------------------------"} | |
Hidden : | |
Archive : | |
EightDotThreeFileName : | |
FileSize : | |
Name : C:\ | |
Compressed : | |
Encrypted : | |
Readable : True |
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
| | Compare | Contrast JUnit | Contrast TestNG | | | | |
|--------------------|----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---| | |
| Initialization | Uses annotations for Initialization and cleanup |
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
#!/usr/bin/env python | |
import os | |
run = '/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper' | |
runusr = '/opt/vyatta/bin/vyatta-op-cmd-wrapper' | |
red=31 | |
green=32 | |
reset=37 | |
def make_color(color): |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import vyatta | |
run = '/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper' | |
runusr = '/opt/vyatta/bin/vyatta-op-cmd-wrapper' | |
red=31 | |
green=32 | |
reset=37 |
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
// #define DRYRUN | |
#region Header | |
// Sql.cs\n Copyright (C) Adonis Deliannis, 2019\nCreated 26 08, 2019 | |
// Place each class and interface in their respected files to clean up this file for easier reading, your prerogative. | |
#endregion | |
using System; | |
using System.Collections.Generic; | |
using System.Data.Common; | |
using System.Linq; |
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
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. | |
System.MissingMethodException: Method not found: 'System.String Microsoft.Build.Evaluation.ProjectCollection.get_DisplayVersion()'. | |
at Microsoft.Build.CommandLine.MSBuildApp.DisplayCopyrightMessage() | |
at Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches switchesFromAutoResponseFile, CommandLineSwitches switchesNotFromAutoResponseFile, String& projectFile, String[]& targets, String& toolsVersion, Dictionary`2& globalProperties, ILogger[]& loggers, LoggerVerbosity& verbosity, List`1& distributedLoggerRecords, Boolean& needToValidateProject, String& schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter& preprocessWriter, Boolean& detailedSummary, ISet`1& warningsAsErrors, ISet`1& warningsAsMessages, Boolean& enableRestore, Boolean& interactive, ProfilerLogger& profilerLogger, Boolean& enableProfiler, Dictionary`2& restoreProperties, Boolean& isolateProjects, Boolean& graphBuild, Strin |