Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Course dancourse

View GitHub Profile
View generic-partner-spacing.css
// this will need name-spacing so we don't over-write any partner / VLE CSS, suggestion, `kp--padding-around-sm`.
//////////
// Some Helper Classes
/////////
// around
// this goes around the whole thing
.padding-around-sm {
padding: 5px;
View text_entry.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<!-- <link rel="stylesheet" href="./css/mCustomScrollbar.css"/> -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js"></script>
View notify_orderConfirmSend
Option Explicit
Sub notify_orderConfirmSend()
Const sUrl As String = "http://tomra.lnx.warwick.ac.uk/api/send/order-confirm"
 
Dim oRequest As WinHttp.WinHttpRequest
Dim sResult As String
 
On Error GoTo Err_notify_orderConfirmSend
 
View gist:b8f37a2466884cc6a1d4c81a9bc2912d
# Dubai
* https://angel.co/dubai/jobs
* https://www.glassdoor.co.uk/Job/dubai-jobs-SRCH_IL.0,5_IC2204498.htm
* https://dubai.dubizzle.com/jobs/information-technology/
* https://jobsindubai.com/job_list.asp?job_cat_id=25
* http://www.indeed.ae/jobs?q=UI+Agencies&l=Dubai
## Extra
@dancourse
dancourse / gitlab-ci.yml
Created Oct 26, 2015
Attempt to deploy to production from Gitlab CI on releases
View gitlab-ci.yml
before_script:
- curl -s https://getcomposer.org/installer | php
# etc...
stages:
- test
- deploy
job_aliveonly:
stage: test
View .gitlab-ci.yaml
image: centos7
before_script:
- php -v
- curl -s https://getcomposer.org/installer | php
- cp ./config/pst.gitlabci.php ./config/pst.php
- cp ./.env.gitlabci ./.env
- php composer.phar install --prefer-dist --quiet
- php composer.phar dump-autoload --quiet
- php artisan key:generate
@dancourse
dancourse / .bash_profile
Last active Sep 11, 2015
Clear your Terminal window totally, like Cmd + K (Command + K / Apple + K / Super + K)
View .bash_profile
# vi ~/.bash_profile
# Add it, then close the Terminal window and re-open
# thanks me later
# Cmd + K (Command + K / Apple + K / Super + K)
clearbig() {
clear;
printf '\e[3J';
}
@dancourse
dancourse / FeatureContext.php
Created Jul 14, 2015
Behat and Laravel simple solution to listen for Events
View FeatureContext.php
class FeatureContext extends MinkContext implements Context, SnippetAcceptingContext
{
/**
* @When I listen for the event :event
*/
public function iListenForTheEvent($event)
{
$redis = Redis::connection();
$redis->set('eventHeard', false);
@dancourse
dancourse / gist:92cf77829e5b0b5bba62
Last active Nov 14, 2019
Laravel Homestead blackfire setup
View gist:92cf77829e5b0b5bba62
# Edit out homestead settings
homestead edit
# Enter your details, https://blackfire.io/account/credentials
# See re-provision your homestead box
vagrant global-status
vagrant provision ???? # << this is the id of the homestead instance you have running, from global-status
# So far this didn't work so carry on...
@dancourse
dancourse / gist:5ee17a596223c10d5648
Created Apr 2, 2015
Simple PHPunit provider example
View gist:5ee17a596223c10d5648
class ScoringTest extends TestCase
{
/**
* Some Grades
*/
public static function all_grades_provider()
{
return [
[100.00],
[50.00],
You can’t perform that action at this time.