Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Jeremie Ges GesJeremie

😀
View GitHub Profile
@GesJeremie
GesJeremie / query.ts
Created May 16, 2022
Shopify – GraphQL query to retrieve orders pending fulfillment
View query.ts
// fulfillment_status statuses: shipped, partial, unshipped, any, unfulfilled
export default `
query GetOrdersPendingFulfillment {
orders(first: 250, query: "fulfillment_status:unfulfilled") {
pageInfo {
hasNextPage
}
edges {
node {
id
View keybase.md

Keybase proof

I hereby claim:

  • I am GesJeremie on github.
  • I am gesjeremie (https://keybase.io/gesjeremie) on keybase.
  • I have a public key whose fingerprint is 03B9 7800 6E57 04D5 6779 5584 8F99 6EE2 AF52 7C35

To claim this, I am signing this object:

View method.ex
def create_contact(conn, %{"classified_contact" => params, "id" => id}) do
with {:ok, conn} <- CreateContactOperation.run(conn, params, %{classified_id: id}) do
conn
|> redirect(to: app_classified_path(conn, :show, id))
else
{:error, conn} ->
conn
|> show(%{"id" => id})
end
View operation.ex
defmodule Babysitting.Operations.Classified.CreateContactOperation do
import Plug.Conn;
alias Babysitting.Repo;
alias Babysitting.{ClassifiedContact}
alias Babysitting.Changesets.{ClassifiedContactChangeset}
def run(conn, params, options) do
conn = assign(conn, :params, params)
conn = assign(conn, :options, options)
View keybase.md

Keybase proof

I hereby claim:

  • I am GesJeremie on github.
  • I am gesjeremie (https://keybase.io/gesjeremie) on keybase.
  • I have a public key whose fingerprint is 62AC 3C92 E55E 184B 6815 33EF 174E D6C5 6732 B3F1

To claim this, I am signing this object:

View list-countries-elixir.ex
countries = [
%{code: "AF", name: "Afghanistan"},
%{code: "AX", name: "Åland Islands"},
%{code: "AL", name: "Albania"},
%{code: "DZ", name: "Algeria"},
%{code: "AS", name: "American Samoa"},
%{code: "AD", name: "Andorra"},
%{code: "AO", name: "Angola"},
%{code: "AI", name: "Anguilla"},
%{code: "AQ", name: "Antarctica"},
View gist:f107c305beccb3e8b5e8
`!slack` - *Lien intégrations slack*,
`!bib admin` - Lien panel d'administration BIB,
`!finances [year]` - Lien suivi des finances,
@GesJeremie
GesJeremie / PurchaseMasterBoxTest.php
Created Jan 21, 2016
Put that under tests/functionnal/PurchaseMasterBoxTest.php
View PurchaseMasterBoxTest.php
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Faker\Factory as Faker;
class PurchaseMasterBoxTest extends TestCase
{
View migration1.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserOrderBuildingsTable extends Migration {
/**
* Run the migrations.
*