Skip to content

Instantly share code, notes, and snippets.

@PolGuixe
PolGuixe / ISOMetricprofile.xml
Last active September 15, 2023 20:45
Fusion 360 Threads
<?xml version="1.0" encoding="UTF-8"?>
<ThreadType>
<Name>ISO Metric profile</Name>
<CustomName>ISO Metric Profile</CustomName>
<Unit>mm</Unit>
<Angle>60</Angle>
<SortOrder>3</SortOrder>
<ThreadSize>
<Size>0.25</Size>
<Designation>
@PolGuixe
PolGuixe / 0_reuse_code.js
Created June 16, 2017 03:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@PolGuixe
PolGuixe / .hyper.js
Last active May 17, 2017 13:35
hyper-settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@PolGuixe
PolGuixe / ClickableCard.jsx
Created April 5, 2017 17:17
Clickable Material UI Card
// ... do all required imports ...
const getStyles = () => ({
clickableCard: {
style: {
height: 'auto',
width: '100%',
margin: '0px',
padding: '0px'
}
@PolGuixe
PolGuixe / 000-default-le-ssl.conf
Created April 3, 2017 02:21
Apache sites enabled config files
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@PolGuixe
PolGuixe / .gitignore
Last active July 18, 2023 11:05
Prestashop gitigonre
# This is a template .gitignore file for git-managed Prestashop projects. Inspired by micahwalter wordpress gitignore
#Ignore ds_store
*.DS_Store
# Ignore everything in the root except modules, themes and override.
/*
!modules/
!themes/
@PolGuixe
PolGuixe / Col.jsx
Created March 21, 2017 13:43
Col element implemented with JSS
// WIP
/**
* react-flexbox-grid-jss
*
* Copyright © 2017 Zetoff, Pol Guixe. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
@PolGuixe
PolGuixe / console log
Last active November 11, 2016 10:58
Debbuging AWS S3 integration
I20161110-20:03:03.573(1)? [FilesCollection] [find({"meta":{"sessionId":"P9FeBQXF6dpQheBEv"}}, undefined)]
I20161110-20:06:27.578(1)? [FilesCollection] [File Start Method] IMG_3189.PNG - AFGLPexSm5ihbC9EA
I20161110-20:06:27.580(1)? [FilesCollection] [Upload] [Start Method] Got #-1/1 chunks, dst: IMG_3189.PNG
I20161110-20:06:28.117(1)? [FilesCollection] [Upload] [DDP] Got #1/1 chunks, dst: IMG_3189.PNG
I20161110-20:06:28.128(1)? [FilesCollection] [Upload] [DDP] Got #-1/1 chunks, dst: IMG_3189.PNG
I20161110-20:06:28.130(1)? [FilesCollection] [Upload] [finish(ing)Upload] -> assets/app/uploads/productImages/AFGLPexSm5ihbC9EA.PNG
I20161110-20:06:28.158(1)? [FilesCollection] [Upload] [finish(ed)Upload] -> assets/app/uploads/productImages/AFGLPexSm5ihbC9EA.PNG
I20161110-20:06:28.159(1)? files/4Q4NdzA7C8bWT7Qkh-original.PNG
I20161110-20:06:28.221(1)? [FilesCollection] [_preCollectionCursor.observeChanges] [removed]: AFGLPexSm5ihbC9EA
I20161110-20:06:28.948(1)? Success
@PolGuixe
PolGuixe / client-configs-context.js
Last active June 1, 2017 16:13
Mantra + Meteor + Redux
//client/configs/context.js
//Not using reactiveDict: LocalState
import * as Collections from '/lib/collections';
import {Meteor} from 'meteor/meteor';
import {FlowRouter} from 'meteor/kadira:flow-router-ssr';
import {Tracker} from 'meteor/tracker';
import {createStore, combineReducers} from 'redux';
export default function ({reducers}) {
@PolGuixe
PolGuixe / test.js
Created July 2, 2016 12:03
modelling engine tests
import { Model, Block, InputBlock, OutputBlock, BlockDef, InputBlockDef, BlockDefParameter, Library } from 'meteor/zetoff:modelling-engine-entities';
import { Encoder, Decoder, Executer } from 'meteor/zetoff:modelling-engine-core';
const math = Library.get('math');
if (math) {
global.modelMath = new Model({
name: 'model_1',
libraries: [math],
});