| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or 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
| apiVersion: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: ingressroutes.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: IngressRoute |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| angular: | |
| build: . | |
| image: michaelchiche/traefik-swarm-demo |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| postgres: | |
| image: postgres | |
| restart: always | |
| volumes: | |
| - db_data:/var/lib/postgresql/data | |
| graphql-engine: | |
| image: hasura/graphql-engine:v1.0.0-alpha45 | |
| ports: |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| wordpress: | |
| image: wordpress | |
| restart: always | |
| ports: | |
| - 8080:80 | |
| environment: |
This file contains hidden or 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
| {"parts":[{"part_id":"a9f8e0d3-c449-4ddc-b3f1-a48a0b28e3c1","field_values":{"d4794b80-0577-4126-851f-6ce466020a71":"HABILLAGE INTERIEUR","72fa4d68-28ea-4b29-98d5-6e33360f9179":"F10360/AB","743f48bc-dcc6-43da-b56f-b7a786b278a6":"Panneau de porte AV G","04f8bd8d-de25-4c1b-a3fe-63ba475ccf97":"3,99","26916a6a-0275-42d9-95cb-49acc9d8ad0e":"Buy","cec4b2fe-bd42-4344-9dc0-7aa6b48750b4":"2.0000","8013124b-b9c9-4085-ba14-a3bf0a397a0a":"1.0000","86f8c757-adcf-40e4-81ec-188162a856ac":"DE-VD","faab764f-0fe6-4166-afc8-2c5335558587":"-","0bc06230-e09c-4e8d-bda1-70b21d9171ed":"TRIM-FR LH DOOR PANEL","595dfd6c-2fd5-4d10-b1ff-a56dd40890a1":"1.0000","692a03f3-647b-4049-80ca-420a5ad3312c":"COCA","284254f2-61b2-43eb-8f4b-541c3fd282fb":"GF62","73049010-765b-4cb5-ba66-2608b5af64ec":"GARNITURE DE PANNEAU DE PORTE AV G","c10fd864-4fcd-4cfe-8a9d-392e430cd3bd":"UB","377cfee2-0a09-476f-88eb-b6fe98d9208f":"PANNEAU","9bfaf705-d1f8-4fd6-9fe9-9889154691aa":"*"}},{"part_id":"8ddf64d8-b14c-4838-9615-2ee5780ea804","field_values":{"d4794b80-057 |
This file contains hidden or 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 unicodecsv | |
| from django.http import HttpResponse | |
| def export_as_csv_action(description="Export selected objects as CSV file", | |
| fields=None, exclude=None, header=True): | |
| """ | |
| This function returns an export csv action | |
| 'fields' and 'exclude' work like in django ModelForm | |
| 'header' is whether or not to output the column names as the first row | |
| """ |
This file contains hidden or 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
| Verifying that +michaelchiche is my blockchain ID. https://onename.com/michaelchiche |
This file contains hidden or 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
| /* | |
| * Loads a handlebars.js template at a given URL. Takes an optional name, in which case, | |
| * the template is added and is reference-able via templateName. | |
| */ | |
| function loadTemplate(url, name, callback) { | |
| var contents = $.get(url, function(templateText) { | |
| var compiledTemplate = Ember.Handlebars.compile(templateText); | |
| if (name) { | |
| Ember.TEMPLATES[name] = compiledTemplate | |
| } else { |