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 <stdio.h> | |
#include <Windows.h> | |
int main(int argc, char** argv) | |
{ | |
int pid = 10964; | |
DWORD_PTR addr = 0x7FF7BD730000; | |
return 0; | |
} |
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
<?php | |
/* | |
* This script was created by James Jeffery for use in the following video: https://youtu.be/KNMTmiZQPZU | |
* This script is completely free - as in free beer :) | |
*/ | |
if (!isset($argv[1]) || empty($argv[1])) { | |
exit ("You must provide a keyword"); | |
} |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { library, dom } from '@fortawesome/fontawesome-svg-core' | |
import { faSnapchat } from "@fortawesome/free-brands-svg-icons" | |
import { | |
faGlobe, | |
faMars, | |
faVenus, | |
faCameraRetro, | |
faPlus |
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
import React from 'react' | |
export default ({ | |
error, | |
icon, | |
label, | |
placeholder | |
}) => ( | |
<div className="field"> | |
<label className="label">{label}</label> |
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
<?php | |
namespace API\Controllers; | |
use Respect\Validation\Exceptions\NestedValidationException; | |
class User { | |
protected $userRepository; | |
protected $logger; |
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
$container['errorHandler'] = function ($c) { | |
return function ($request, $response, $exception) use ($c) { | |
$c->logger->error('Application Error:', [$exception]); | |
return $c['response'] | |
->withStatus(500) | |
->withHeader('Content-Type', 'application/json') | |
->withJson([ | |
'success' => false, | |
'error' => "Nope, that didn't work. Try again." | |
]); |
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 function add($request, $response, $args) { | |
$user = $request->getParsedBody(); | |
if(!$user) { | |
throw new \Exception('Failed to add user: $user is null'); | |
return; | |
} | |
$validator = \API\Validators\UserRegistration::validate(); | |
$this->logger->info('User:', [$user]); |
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
import moment from 'moment' | |
import validate from 'validate.js' | |
import constraints from './validation' | |
import formDataJSON from 'formdata-json' | |
import { appendError, removeError } from '../bulma-form-error' | |
import addUser from './addUser' | |
import bulmaFatalError from '../bulma-fatal' | |
validate.extend(validate.validators.datetime, { |
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
<section class="section partners"> | |
<h2 class="section__heading">{{ $.Site.Data.partners.heading }}</h2> | |
<p class="section__description">{{ $.Site.Data.partners.description }}</p> | |
<ul class="carousel partners__carousel"> | |
{{ range $.Site.Data.partners.partners }} | |
<li> | |
<img | |
class="partners__carousel__image" | |
src="{{ .logo }}" |
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
local Song = NI.DATA.StateHelper.getFocusSong(App) | |
local ScaleEngine = NI.DATA.getScaleEngine(App) | |
local Group = NI.DATA.StateHelper.getFocusGroup(App) | |
if ScaleEngine and Group then | |
Params = | |
{ | |
ScaleEngine:getRootNoteParameter(), | |
not ScaleEngine:getChordModeIsChordSet() and ScaleEngine:getScaleBankParameter() or nil, |