This file contains 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
background: linear-gradient(313deg, #000000, #5f5f5f); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 16s ease infinite; | |
-moz-animation: AnimationName 16s ease infinite; | |
-o-animation: AnimationName 16s ease infinite; | |
animation: AnimationName 16s ease infinite; | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 61%} | |
50%{background-position:100% 40%} | |
100%{background-position:0% 61%} |
This file contains 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
package com.example.app; | |
import android.app.Activity; | |
import android.app.ActionBar; | |
import android.app.Fragment; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
This file contains 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
package com.aracem.utils.animations.pagetransformation; | |
import org.jetbrains.annotations.NotNull; | |
import android.support.v4.view.ViewPager; | |
import android.view.View; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains 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
// A file in `routes/` folder | |
module.exports = (function(app, router){ | |
router | |
.route('/books') | |
.get((req, res, next)=>{ | |
if(err){ | |
next(err); | |
// send it to error handler | |
} |
This file contains 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
using UnityEngine; | |
public class SineWaveAnimation : MonoBehaviour { | |
public float baseSize = 1f; | |
void Update() { | |
float animation = baseSize + Mathf.Sin(Time.time * 8f) * baseSize / 7f; | |
transform.localScale = Vector3.one * animation; | |
} | |
} |
This file contains 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
using System.Collections; | |
using UnityEngine; | |
public class BetterJump : MonoBehaviour { | |
public float FallMultiplier = 2.5f; | |
public float lowJumpMultiplier = 2f; | |
RigidBody2D rb; |
This file contains 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
<?php | |
class PayPal { | |
private $config; | |
private $urls = array( | |
"sandbox" => array( | |
"api" => "https://svcs.sandbox.paypal.com/AdaptivePayments/", | |
"redirect" => "https://www.sandbox.paypal.com/webscr", | |
), | |
"live" => array( |
This file contains 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
const through = require("through2") | |
function changeEnvToDev(val) { | |
return through.obj(function(file, encoding, callback) { | |
if (file.isNull()) return callback(null, file) | |
if (file.isStream()) { | |
//file.contents = file.contents.pipe(... | |
//return callback(null, file); | |
this.emit("error", new Error("Streams not supported!")) |
This file contains 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
{ | |
"category": "food", | |
"meter_states": { | |
"quality_control": "status-pending", | |
"preparing": "status-current", | |
"on_the_way": "status-pending" | |
}, | |
"delivery_time": "25", | |
"is_food_order": true, | |
"date_received": "2020-03-13 01:52:01 PM", |
This file contains 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 compareVersions from 'compare-versions'; | |
fetch(process.env.BASE_URL + `version.json?_d=` + encodeURI(new Date().toJSON()), { | |
method: "GET", | |
headers: { | |
"pragma": "no-cache", | |
"cache-control": "no-store" | |
} | |
}) | |
.then(resp => resp.json()) | |
.then(json => { |
OlderNewer