This file contains 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 struct ProcessMemory | |
{ | |
#region Constructors | |
private ProcessMemory(Process process, int address) : this() | |
{ | |
Process = process; | |
Address = address; | |
} |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> | |
</startup> | |
</configuration> |
This file contains 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 class ProgressBar | |
{ | |
private readonly PlayerTextDraw _back; | |
private readonly PlayerTextDraw _fill; | |
private readonly PlayerTextDraw _main; | |
private float _value; | |
private float _max; | |
public ProgressBar(BasePlayer player, float x, float y, float value, Color color = default(Color), | |
float width = 55.5f, float height = 3.2f, |
This file contains 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 "optiboot.h" | |
#include <avr/pgmspace.h> | |
#define MEMADDR 0x20000 | |
void setup() { | |
int i; | |
uint8_t c; | |
uint16_t w; | |
uint8_t ram_buffer[SPM_PAGESIZE]; |
This file contains 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 "optiboot.h" | |
#include <avr/pgmspace.h> | |
#define MEMADDR 0x10000 | |
void setup() { | |
int i; | |
uint8_t c; | |
uint16_t w; | |
uint8_t ram_buffer[SPM_PAGESIZE]; |
This file contains 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
#!/bin/bash | |
videos=$(grep -cve '^\s*$' input.txt) | |
echo "Total of $videos videos" | |
i=1 | |
while read video; do | |
if [[ $(curl -s http://www.youtube.com/oembed\?url\=https://www.youtube.com/watch\?v\=$(echo $video)\&format\=json) = "Not Found" ]]; then | |
echo "$i: $video is bad" | |
echo "$video" >> bad.txt | |
else |
This file contains 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 class SomeNativeObject : NativeObjectSingleton<SomeNativeObject> | |
{ | |
[NativeMethod("OtherNativeName")] // you can remove the parameter if FooMethod is the name of the method | |
public virtual int FooMethod() // must be virtual, a proxy class is generated which will implement this method | |
{ | |
// lets throw this exception to indicate that the native has not properly been loaded if it has been thrown. | |
throw new NativeNotImplementedException(); | |
} | |
[NativeMethod] |
This file contains 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
me: | |
@me=`whoami` ; \ | |
if test $$me != "root" ; \ | |
then \ | |
echo 'What? Make it yourself.'; \ | |
exit 1; \ | |
fi | |
a: | |
@printf '' | |
sandwich: |
This file contains 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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication7 | |
{ |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication2 |
NewerOlder