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
[ | |
{ offset: 'GMT-11:00', label: 'Niue (GMT-11:00)', name: 'Pacific/Niue' }, | |
{ offset: 'GMT-11:00', label: 'Pago Pago (GMT-11:00)', name: 'Pacific/Pago_Pago' }, | |
{ offset: 'GMT-10:00', label: 'Hawaii Time (GMT-10:00)', name: 'Pacific/Honolulu' }, | |
{ offset: 'GMT-10:00', label: 'Rarotonga (GMT-10:00)', name: 'Pacific/Rarotonga' }, | |
{ offset: 'GMT-10:00', label: 'Tahiti (GMT-10:00)', name: 'Pacific/Tahiti' }, | |
{ offset: 'GMT-09:30', label: 'Marquesas (GMT-09:30)', name: 'Pacific/Marquesas' }, | |
{ offset: 'GMT-09:00', label: 'Alaska Time (GMT-09:00)', name: 'America/Anchorage' }, | |
{ offset: 'GMT-09:00', label: 'Gambier (GMT-09:00)', name: 'Pacific/Gambier' }, | |
{ offset: 'GMT-08:00', label: 'Pacific Time (GMT-08:00)', name: 'America/Los_Angeles' }, |
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
su -c "echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram cache and swap Cleared'" root | |
apt-get clean | |
apt-get autoremove --purge |
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
r = 1000 | |
m = [] | |
def fibo(n): | |
if len(m) == 0: | |
m[:r] = [0] * r; | |
if n == 1 or n == 2: | |
m[n] = n | |
return n | |
else: | |
a1 = m[n - 1] |
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
from http.server import BaseHTTPRequestHandler, HTTPServer | |
from requests import Session | |
import webbrowser | |
from cgi import parse_header, parse_multipart | |
from urllib.parse import parse_qs | |
from socketserver import ThreadingMixIn | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36' | |
} |
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
#include <bits/stdc++.h> | |
using namespace std; | |
class bvalid | |
{ | |
public: | |
template <class T> | |
string typeOf(T var) { | |
string ty = typeid(var).name(); | |
string r; | |
if(ty == "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
/* | |
Install rpi-gpio using | |
npm install rpi-gpio -g | |
*/ | |
const gpio = require('rpi-gpio'); | |
var pin = 21; | |
var pin2 = 20; | |
gpio.setMode(gpio.MODE_BCM); |
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
/* | |
Compact version of picojs https://github.com/tehnokv/picojs | |
live demo :- https://codepen.io/bcrazydreamer/pen/JjobdQM | |
*/ | |
FaceDetect = {} | |
FaceDetect.unpack_cascade = function(bytes) | |
{ | |
const dview = new DataView(new ArrayBuffer(4)); | |
let p = 8; |
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
html { | |
box-sizing: border-box; | |
-ms-overflow-style: scrollbar; | |
} | |
body{margin: 0 !important} | |
*, | |
*::before, | |
*::after { | |
box-sizing: inherit; | |
} |
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 React, { Component } from 'react'; | |
import {connect} from "react-redux"; | |
class App extends Component { | |
constructor(props){ | |
super(props); | |
this.state = {} | |
} | |
componentWillMount(){ |
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
/** | |
* In model index ----> module.exports all model file | |
* eg:- | |
* **Models** | |
* module.exports = { | |
* 'Login' : require('./Login'), | |
* 'Accounts : require('./Accounts') | |
* } | |
* | |
* Usage:-------------------------------------------------------------------------- |