Skip to content

Instantly share code, notes, and snippets.

View SourceCode's full-sized avatar
👽
Byte Inspector

Ryan R SourceCode

👽
Byte Inspector
  • Weyland-Yutani Corporation
  • USA
View GitHub Profile
@SourceCode
SourceCode / grunt-multi-task.js
Created September 24, 2016 07:02
Grunt Multi Task Example
grunt.initConfig({
concat: {
foo: {
// concat task "foo" target options and files go here.
},
bar: {
// concat task "bar" target options and files go here.
},
},
uglify: {
echo $(hostname -I | cut -d\ -f1) $(hostname) | sudo tee -a /etc/hosts
@SourceCode
SourceCode / exe.vmptions
Created July 21, 2017 02:25
Settings for jetbrains screen for opengl
-Dawt.useSystemAAFontSettings=lcd
-Dawt.java2d.opengl=true
@SourceCode
SourceCode / xy.js
Last active August 20, 2017 00:35
Move and sort x, y coordinates in a grid of objects
//This sorts a list of x,y cords for moving points
const cords = [
{ id: 1, x: 1, y: 1 },
{ id: 2, x: 1, y: 2 },
{ id: 3, x: 1, y: 3 },
{ id: 4, x: 1, y: 4 },
{ id: 5, x: 2, y: 1 },
{ id: 6, x: 2, y: 2 },
@SourceCode
SourceCode / BinaryGap.cs
Last active June 20, 2023 23:22
Binary Gap - Codibility - C#
using System;
namespace ObjectApp1
{
class Program
{
static void Main(string[] args)
{
var S = new Solution();
Console.WriteLine(S.solution(0));
@SourceCode
SourceCode / OddOccurrencesInArray.cs
Created September 26, 2017 07:32
Odd Occurrences in Array - Codibility - C#
using System;
using System.Collections.Generic;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int[] example = { 0, 0, 1, 2, 2, 3, 3, 0, 0, 2, 2, 2, 3, 3, 1, 8 };
@SourceCode
SourceCode / secuscanprio.io.scan.response.json
Last active September 27, 2017 04:24
secuscanpro.io - example scan response
{
"response_code": 1,
"verbose_msg": "Scan finished, scan information embedded in this object",
"resource": "99017f6eebbac24f351415dd410d522d",
"scan_id": "52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c-1273894724",
"md5": "99017f6eebbac24f351415dd410d522d",
"sha1": "4d1740485713a2ab3a4f5822a01f645fe8387f92",
"sha256": "52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c",
"scan_date": "2010-05-15 03:38:44",
"permalink": "secuscanpro.io/tsapi/v1/analysis/52d3df0ed60c46f336c131bf2ca454f73bafdc4b04dfa2aea80746f5ba9e6d1c/1273894724/",
@SourceCode
SourceCode / CyclicRotation.cs
Last active August 31, 2020 04:58
CyclicRotation of Array - Codibility - C#
using System;
namespace CyclicRotation
{
class Program
{
static void Main(string[] args)
{
var S = new Solution();
var A = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
@SourceCode
SourceCode / PermMissingElem.cs
Last active January 7, 2023 12:12
PermMissingElem - Codibility - C#
using System;
namespace PermMissingElem
{
class Program
{
static void Main(string[] args)
{
int[] A = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18 };
var S = new Solution();
@SourceCode
SourceCode / TreeNode.cs
Created September 30, 2017 21:04
A tree data structure for C# Net Core
using System;
using System.Collections;
using System.Collections.Generic;
namespace Trees1
{
class Program
{
static void Main(string[] args)
{