Skip to content

Instantly share code, notes, and snippets.

View dakshgautam1's full-sized avatar
🎯
Focusing

Daksh Gautam dakshgautam1

🎯
Focusing
View GitHub Profile
@dakshgautam1
dakshgautam1 / README.md
Created June 11, 2017 14:33 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@dakshgautam1
dakshgautam1 / mock_api.js
Created July 3, 2018 19:20
A quick way to mock api call.
const fakeDatabase = option => {
// add case according to the option.
switch (option) {
case 1:
return [{
name: 'James Bond Singh',
age: 41
}, {
name: 'Beauty Kumar',
age: 12
{
test: /\.scss$/, // change here -------------------------------------------------------------------------> change 1
use: [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: {
importLoaders: 1,
},
},
url('../fonts/open-sans-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/open-sans-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/open-sans-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/open-sans-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/open-sans-v13-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
@font-face {
font-family: 'Open Sans Light';
src: local('Open Sans Light'), url('./fonts/Open_Sans/OpenSans-Light.ttf') format('truetype');
}
body {
font-family: 'Open Sans Light';
}
package main
import (
"fmt"
)
type Node struct {
name string
age int
}