This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# If you worked with React and JSX you probably noticed that you can't use JS comments when inside JSX sections | |
# Add this to your Atom init script | |
# Then add 'ctrl-cmd-/': 'comment-jsx' to your keymap.cson | |
# Then when you are on a JS/JSX file, just press cmd+ctrl+/ to use JSX-style comments that work with JSX elements | |
# Is not the most efficient way, but it's the cleanest and reliable one | |
atom.commands.add 'atom-workspace', 'comment-jsx', -> | |
atom.config.set('editor.commentStart', '{/*', {scopeSelector: '.source.js.jsx'}) | |
atom.config.set('editor.commentEnd', '*/}', {scopeSelector: '.source.js.jsx'}) | |
for selection in atom.workspace.getActiveTextEditor().selections |
This file contains 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
Setting your branch to exactly match the remote branch can be done in two steps: | |
git fetch origin | |
git reset --hard origin/master | |
If you want to save your current branch's state before doing this (just in case), you can do: | |
git commit -a -m "Saving my work, just in case" | |
git branch my-saved-work |
This file contains 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
# Properties for mainzelliste | |
# | |
# Configuration template for running OSSE with identifying data | |
# | |
# General format: Key-value pairs, separated by spaces, tabs, "=", ":". | |
# Lines starting with "#" are comments. Comments appended to a line are not possible! | |
# See Javadoc for java.util.Properties#load(Reader) for details. | |
# Property names may contain letters, numbers, underscores and dots. Dots define a hierarchical | |
# structure on the property names. |
This file contains 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
export const AuthActionTypes = { | |
SIGN_IN: type('AUTH:SIGN_IN'), | |
}; | |
export interface SignInAction extends Action { | |
payload: { | |
username: string; | |
password: string; | |
}; | |
} |
This file contains 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
/** | |
* Effect class for auth effects | |
*/ | |
@Injectable() | |
export class AuthEffects { | |
constructor(private actions$: Actions, | |
private authApi: AuthApi, | |
private authUserApi: AuthUserApi, |
This file contains 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
export enum SignInActionTypes { | |
SignIn = '[Auth] Signing In' | |
} | |
export class SignIn implements Action { | |
readonly type = SignInActionTypes.SignIn; | |
constructor(public payload: {err: any}) {} | |
} |
This file contains 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
tree src/ -P "*.api.ts" | |
https://stackoverflow.com/questions/3455625/linux-command-to-print-directory-structure-in-the-form-of-a-tree |
This file contains 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
input::placeholder { | |
color: $grey-lighter !important; | |
} | |
.mat-form-field-outline { | |
color: whitesmoke !important; | |
} | |
.mat-form-field-outline-thick { | |
color: white !important; | |
box-shadow: 1px 0px 10px 0.125em rgba(255, 255, 255, 0.27) !important; |
OlderNewer