Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

CodeNextGen CodeNextGen

🎯
Focusing
Block or report user

Report or block CodeNextGen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View youtube_videos.json
[
{
"post_id": 1,
"title": "The everyday life of Bishnois:- Rituals and a culture of protests",
"author": "1",
"post_date": "30-04-2019",
"image_url": "",
"post_type": "youtube",
"description": "",
"link": "2T9xJSYfj6U",
@CodeNextGen
CodeNextGen / countdown_widget.dart
Created Apr 11, 2019
bug fixes for flutter Blur widget
View countdown_widget.dart
import 'package:flutter/material.dart';
import 'package:frideos/frideos.dart';
import './custom/custom_blur_widget.dart';
import '../models/models.dart';
class CountdownWidget extends StatefulWidget {
const CountdownWidget(
{@required this.width, Key key, this.duration, this.triviaState})
@CodeNextGen
CodeNextGen / Route.js
Last active Nov 21, 2018
Eventmatch Package.json
View Route.js
import React from 'react'
import { connect } from 'react-redux';
import {
AsyncStorage, ImageBackground,
Text, TouchableOpacity, Image, View, StatusBar, Platform, Alert
} from 'react-native';
import { Router, Scene, Stack, NavigationBar, Title } from 'react-native-router-flux';
import Icon from 'react-native-vector-icons/dist/FontAwesome';
import { Actions, ActionConst } from 'react-native-router-flux';
import * as User from './actions/user';
@CodeNextGen
CodeNextGen / app.js
Created Oct 29, 2018
Electron JS main App.js file
View app.js
import path from 'path'
import url from 'url'
import { app, crashReporter, BrowserWindow, Menu, globalShortcut } from 'electron'
const isDevelopment = (process.env.NODE_ENV === 'development')
let mainWindow = null
let forceQuit = false
var shouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) {
// Someone tried to run a second instance, we should focus our window.
if (mainWindow) {
if (mainWindow.isMinimized()) mainWindow.restore();
@CodeNextGen
CodeNextGen / select_printer.js
Created Oct 29, 2018
To set the default printer out of list
View select_printer.js
import React, { Component } from 'react';
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton';
import RaisedButton from 'material-ui/RaisedButton';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const storage = require('electron-json-storage');
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
@CodeNextGen
CodeNextGen / videoview.xml
Last active Oct 26, 2018
Youtube Thumbnail UI
View videoview.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:orientation="vertical"
app:cardBackgroundColor="@color/white"
@CodeNextGen
CodeNextGen / api.php
Last active Oct 26, 2018
Wordpress REST api file (without using any plugin)
View api.php
<?php
//api/api.php?method=ForgotPassword
include('../wp-load.php');
class myapiclass {
public function commonGetData($postPerPage=NULL,$category=NULL,$post_type=NULL, $orderBy=NULL,$order=NULL,$notRequiredData=NULL,$status='publish'){
// echo $category." in common data";
View gist:5996e8bd99c7f4e451d91a5ba5117452
public class DrawerActivity extends BaseActivity
implements NavigationView.OnNavigationItemSelectedListener,HomeFragment.OnItemClickListenerInFragment {
public FragmentManager fm;
@BindView(R.id.drawer_layout)
DrawerLayout drawer;
@BindView(R.id.toolbar)
Toolbar toolbar;
@BindView(R.id.nav_view)
@CodeNextGen
CodeNextGen / activity_main.xml
Last active Oct 26, 2018
Activity Layout File
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
You can’t perform that action at this time.