Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
| // This object contains a string value that in contains a single quote, | |
| // a double quote, a backtick, and a backslash. | |
| const data = { foo: `a'b"c\`d\\e` }; | |
| // Turn the data into its JSON-stringified form. | |
| const json = JSON.stringify(data); | |
| // Now, we want to insert the data into a script body as a JavaScript | |
| // string literal per https://v8.dev/blog/cost-of-javascript-2019#json, | |
| // escaping special characters like `"` in the data. |
| import Head from 'next/head' | |
| import { Container } from 'reactstrap' | |
| const Layout = (props) => ( | |
| <div> | |
| <Head> | |
| <title>PairHub</title> | |
| <meta name="viewport" content="initial-scale=1.0, width=device-width" /> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" /> | |
| </Head> |
-
Kinesis Freestyle (Terrible key switches. Mushy and un-lovable)
-
Kinesis Freestyle Edge (Traditional layout with too many keys, mech switches, proably too big to be tented easily/properly)
-
Matias Ergo Pro (Looks pretty great. Have not tried.)
-
ErgoDox Kit (Currently, my everyday keyboard. Can buy pre-assembled on eBay.)
-
ErgoDox EZ (Prolly the best option for most people.)
| ffmpeg -i inputfile.wav -ab 320k outputfile.mp3 |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
Dashing widget to display a Jenkins build status and build progress
The widget is based on the meter-widget which is default in the Dashing installation
The widget can also see the progress of a "pre-build", i.e if you have a job triggering the actual build you want to define, you can configure this job in the jenkins_build.rb as a prebuild.
For more information, please see Coding Like a tosser
| NSString* string = @"Hello World"; | |
| UIFont *font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:21]; | |
| CGSize constraint = CGSizeMake(300,NSUIntegerMax); | |
| NSDictionary *attributes = @{NSFontAttributeName: font}; | |
| CGRect rect = [string boundingRectWithSize:constraint | |
| options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading) |
The MIT License (MIT)
Copyright (c) 2014 David Underwood
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: