git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
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
| [ | |
| { | |
| "no":1, | |
| "name":"George Washington", | |
| "desc":"George Washington was an American political leader, military general, statesman, and founding father who served as the first president of the United States from 1789 to 1797. Previously, he led Patriot forces to victory in the nation's War for Independence.", | |
| "life":["1732-02-22","1799-12-14"], | |
| "period":[1789,1797], | |
| "image":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAHgAeAMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAAAQIDBAUGB//EADMQAAIBAwMCBQMDAQkAAAAAAAECAAMEEQUhMRJBBhMiUWEUcYEyQqHwByMzUmKRscHR/8QAGAEAAwEBAAAAAAAAAAAAAAAAAAECAwT/xAAdEQEBAQEAAgMBAAAAAAAAAAAAARECAyESIjFR/9oADAMBAAIRAxEAPwDyEmEDCY1oICEURGIRcwgBzEEN4YMADExFwYYgDcQimECJCLDEYHfMIQjlAMSKYgioLACKBHgSTNCxwEcBHAbwGGdMOntOg8LeHK+vXfSAyW1PepVA/gfM9P0/w1penUlFnZoW/c9T1MT9zI68k5VOdeH4iET3C/0iyuAf |
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
| function numji(i, c = 0) { | |
| let s = ""; | |
| if (!Number.isNaN(i) && Number.isFinite(i)) { | |
| i = Math.abs(Math.trunc(i)); | |
| do { | |
| c--; | |
| s = String.fromCharCode(0x0030 + i % 10, 0xFE0F, 0x20E3) + s; | |
| i = Math.trunc(i / 10); | |
| } while (i > 0 || c > 0); | |
| } |
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
| .cache | |
| dist | |
| node_modules |
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
| namespace MyName { | |
| export type MyType = string | number; | |
| export const myValue: MyType = createSampleValue(); | |
| // internal | |
| function createSampleValue(): string { | |
| return "test"; | |
| } |
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: 2 | |
| updates: | |
| - package-ecosystem: "npm" | |
| directory: "/" | |
| schedule: | |
| interval: "daily" |
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 static io.vavr.API.*; | |
| import io.vavr.collection.Iterator; | |
| import io.vavr.control.Either; | |
| public class FizzBuzz { | |
| public static void main(String[] args) { | |
| var fizzBuzz = Iterator.from(1).map(i -> |
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
| implicit class StringContextExtensions(private val sc: StringContext) extends AnyVal { | |
| def xs(args: Any*): String = align(sc.s, args) | |
| def xraw(args: Any*): String = align(sc.raw, args) | |
| private def align(interpolator: Seq[Any] => String, args: Any*): String = "" | |
| } |
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
| buildscript { | |
| repositories { | |
| /* | |
| * --> in-house Artifactory server here <-- | |
| */ | |
| gradlePluginPortal() | |
| } | |
| dependencies { | |
| classpath "io.spring.gradle:dependency-management-plugin:${versionSpringDependencyManagementPlugin}" | |
| classpath "net.researchgate:gradle-release:${versionGradleReleasePlugin}" |