I hereby claim:
- I am LiljebergXYZ on github.
- I am danl (https://keybase.io/danl) on keybase.
- I have a public key whose fingerprint is 573E FC65 89C4 7AB6 385C B9E4 D1E8 1B72 B0C4 DFFD
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| // Gets indiivudal objects from a json string | |
| // By checking for opening and closing brackets | |
| // While ensuring they're all the same size | |
| // - Daniel L. 2017-12-14 | |
| function getObject($stream) { | |
| $openbrackets = 0; | |
| $closedbrackets = 0; | |
| $instr = false; | |
| $startPos = 0; |
| <?php | |
| abstract class Database | |
| { | |
| protected $db; | |
| protected $query; | |
| protected $values = []; | |
| public function __construct($dbname, $host, $username, $password) { } |
| #!/bin/bash | |
| # | |
| # Intended for use with CloudLinux | |
| # | |
| action=$1 | |
| domain=$2 | |
| siteConfigs='/etc/httpd/conf.d/' | |
| sitesAvailableDomain=$siteConfigs$domain.conf | |
| if [ "$(whoami)" != 'root' ]; then |
| import pygame, sys | |
| from pygame import * | |
| pygame.init() | |
| DONE = False | |
| #Create a displace surface object | |
| screen = pygame.display.set_mode((800, 600), FULLSCREEN) |
| using System; | |
| using System.Net; | |
| using Nimble.JSON; | |
| using System.Text.RegularExpressions; | |
| using System.Collections.Generic; | |
| namespace Viaplay | |
| { | |
| public class Viaplay | |
| { |
| #!/bin/bash | |
| SESSIONS=$(tmux ls) | |
| RESTORED=false | |
| IFS=':' read -ra SES <<< "$SESSIONS" | |
| if [ ${#SES} != 0 ]; then | |
| for i in "${SES[@]}"; do | |
| if [ "$i" = "dev" ]; then | |
| RESTORED=true | |
| tmux a -t "$i" | |
| fi |
| //Upload function using the native functionality of Mac | |
| public static string UploadNative (string url, byte [] paramFileBytes, string fileFormName, Dictionary<string, string> args) | |
| { | |
| NSData actualFile = NSData.FromArray (paramFileBytes); | |
| NSString urlString = (NSString)url; | |
| //we're gonna send byte data | |
| NSMutableUrlRequest request = new NSMutableUrlRequest (); | |
| request.Url = new NSUrl(urlString); | |
| request.HttpMethod = "POST"; | |
| string boundary = "---------------------------14737809831466499882746641449"; |
I hereby claim:
To claim this, I am signing this object: