Skip to content

Instantly share code, notes, and snippets.

View sergiorgiraldo's full-sized avatar
😃
42

Sérgio Giraldo sergiorgiraldo

😃
42
View GitHub Profile
<?php
namespace App\Http\Controllers\App;
use App\Http\Controllers\Controller;
use App\Models\Link;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
{
"short_name": "Share url to Linkace",
"name": "Share url to Linkace",
"share_target": {
"action": "/public/bookmarklet/addmobile",
"method": "GET",
"params": {
"title": "t",
"text": "u"
}
@sergiorgiraldo
sergiorgiraldo / script.md
Last active February 27, 2023 20:36
Oefnen

create the script testDutch:

#!/bin/bash 
while [ "$cmd" != "q" ]
do
	clear
	echo "> n voor een nieuwe vraag of q om af te sluiten"
	read -p "> " cmd
	if [ "$cmd" != "q" ]
	then
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Iteration Samples - Ramda, Lodash, chaining, transducers">
<script src="https://cdn.jsdelivr.net/g/lodash@4(lodash.min.js+lodash.fp.min.js)"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.js"></script>
<script src="https://cdn.rawgit.com/zloirock/core-js/master/client/shim.min.js"></script>
<script src="https://wzrd.in/standalone/tape@latest"></script>
<script src="https://wzrd.in/standalone/tap-browser-color@latest"></script>
<script src="https://wzrd.in/standalone/tape-catch@latest"></script>
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ramda/0.7.2/ramda.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-3d.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<meta charset="utf-8">
<title>Ramdajs</title>
@sergiorgiraldo
sergiorgiraldo / HowToCommitLint.md
Last active November 22, 2019 12:58
CommitLint
  1. npm init

  2. npm install --save-dev @commitlint/cli
    npm install --save-dev @commitlint/config-conventional
    npm install --save-dev @commitlint/prompt-cli

  3. notepad commitlint.config.js

@sergiorgiraldo
sergiorgiraldo / semver.txt
Created November 13, 2019 12:16
semver for dotnetrt core in vscode-put in csproj
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Deterministic>False</Deterministic>
<Authors>Sérgio Giraldo</Authors>
<Company>sergiorgiraldo</Company>
<Copyright>(c) sergio giraldo - 2019</Copyright>
<Product>shorten</Product>
<VersionPrefix>1.0.0</VersionPrefix>
@sergiorgiraldo
sergiorgiraldo / tasks.json
Created November 13, 2019 11:30
tasks.json to build dotnet applications
{
//for this to work, you have to define a workspoace in vscode WITH SAME NAME AS YIOUR CSPROJ FILE
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
import boto3, os
s3 = boto3.resource('s3')
my_bucket = s3.Bucket(name='NAME_OF_BUCKET') #not a path. if path is s3://foo, put _foo_
for object in my_bucket.objects.all():
print(object)
Verifying my Blockstack ID is secured with the address 1NHP69DEeuSh23XAUzLquKLXY6AFVKL5Rm https://explorer.blockstack.org/address/1NHP69DEeuSh23XAUzLquKLXY6AFVKL5Rm