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, { useEffect, useRef, useState, useCallback, useMemo } from 'react'; | |
export default () => { | |
const inputRef = useRef(); | |
const [percentage, setPercentage] = useState(0); | |
const [start, setStart] = useState(false); | |
let intervalRef = useRef(); | |
useEffect(() => { console.log(percentage) }, [percentage]) | |
useEffect(() => { |
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
{ | |
"programs": [ | |
{ | |
"id": 1, | |
"lesson_name": "lesson 1", | |
"lessons": [ | |
{ | |
"id": 1, | |
"title": "Regular Lesson", | |
"price": 15.00, |
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
/** | |
* Wix/react-native-calendars with drag and drop | |
* created by: anthony lloveras | |
* email: [email protected] | |
*/ | |
import React, { useState } from 'react'; | |
import faker from 'faker'; | |
import { Calendar } from 'react-native-calendars'; | |
import { |
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
/** | |
* Wix/react-native-calendars with drag and drop | |
* created by: anthony lloveras | |
* email: [email protected] | |
*/ | |
import React, { useState } from 'react'; | |
import faker from 'faker'; | |
import { Calendar } from 'react-native-calendars'; | |
import { |
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
var svgs = document.getElementsByClassName('mysvg') | |
function svgBold(elems) { | |
var boldSize = 10; | |
for (var i in Object.keys(elems)) { | |
var el = elems[i].contentDocument; | |
var number = el.getElementsByClassName('st0')[0]; | |
var circle = el.getElementsByClassName('st1')[0]; | |
number.style.strokeWidth = boldSize; |
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 flask import Flask | |
from flask_restful import Resource, Api | |
from flask_cors import CORS | |
app = Flask(__name__) | |
api = Api(app) | |
CORS(app) | |
def get(self): | |
args = request.args | |
try: |
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
// imports.. | |
@Component({ | |
// same same ... | |
}) | |
export class MyComponent implements OnInit { | |
public form: FormGroup; | |
constructor(private config: MyService) {} | |
ngOnInit() { |
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
// since the <body> tag is inside the index.php and doesn't have any component.ts | |
<a alphaToggleNav class="sidebar-toggle" data-toggle="offcanvas" role="button"> | |
// the alphaToggleNav directive will find the body tag, and will change the className depending on the state. |