Skip to content

Instantly share code, notes, and snippets.

View nicokoelewijn's full-sized avatar
👋

Nico Koelewijn nicokoelewijn

👋
  • NK Development
  • Tiel
View GitHub Profile
# src/Acme/Bundle/DemoBundle/Resources/views/layouts/base/theme.yml (original not used)
# src/AppBundle/Resources/views/layouts/first_theme/theme.yml (actually used path)
# The layout theme that is used to add the page content and common page elements
label: Nice custom theme
directory: Demo_theme
@nicokoelewijn
nicokoelewijn / bundles.yml
Created October 10, 2019 07:03
bundles.yml
# src/AppBundle/Resources/config/oro/bundles.yml
bundles:
- AppBundle\AppBundle
@nicokoelewijn
nicokoelewijn / AppBundle.php
Created October 10, 2019 06:58
AppBundle.php
<?php
// src/AppBundle/AppBundle.php
namespace AppBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle
{
}
@nicokoelewijn
nicokoelewijn / setup.sh
Last active January 19, 2019 11:22
OSX - Create login item via terminal
# Creating the scripts directory
DIR=$HOME"/scripts"
if [ ! -d "$DIR" ]; then
mkdir ~/scripts
fi
read -p "Script name: " FILE
echo "Creating script: $FILE!"
FILEPATH=$DIR"/"$FILE
import _R from 'react';
import { StyledComponentClass as _S } from 'styled-components';
import styled from '../../utility/styled';
// import ThemeType from '../../types/ThemeType';
type PropsType = {};
const Styled$@ = styled.div`
border: 1px solid red;
`;
import { storiesOf } from '@storybook/react';
import React from 'react';
import $@ from '.';
storiesOf('$@', module).add('Default', () => {
return <$@>Foo</$@>;
});
@nicokoelewijn
nicokoelewijn / index.tsx
Last active January 3, 2019 14:52
functional component template
import React, { FunctionComponent } from 'react';
import Styled$@ from './style';
type PropsType = {};
const $@: FunctionComponent<PropsType> = (props): JSX.Element => (
<Styled$@>
{props.children}
</Styled$@>
);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundBlur</key>
<real>0.40000000000000002</real>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
@nicokoelewijn
nicokoelewijn / file.php
Created January 24, 2018 13:09
include all files in directory
foreach (scandir($dir) as $filename) {
$path = $dir . $filename;
if (is_file($path) && $filename !== '.DS_Store') {
require_once $path;
}
}
// Component triggers the OSX notification pop-up
//
// Usage:
// const notify = require('./notify');
// notify('hello');
const osascript = require('node-osascript');
module.exports = (msg) => {