Skip to content

Instantly share code, notes, and snippets.

View SalocinDotTEN's full-sized avatar
✝️
www.salocinten.info | Coding for Jesus!

Salocin.TEN SalocinDotTEN

✝️
www.salocinten.info | Coding for Jesus!
View GitHub Profile
@irazasyed
irazasyed / get-img-raw-data.php
Created April 14, 2013 13:05
PHP: Get image raw data (cURL & file_get_contents support)
/*-------------------------------------------------+
| Gets Image Raw Data,
| Used with GD Lib (imagecreatefromstring)
+-------------------------------------------------*/
function getImageRawData($image_url) {
if (function_exists('curl_init')) {
$opts = array();
$http_headers = array();
$http_headers[] = 'Expect:';
anonymous
anonymous / Responsive-Calendar.markdown
Created May 7, 2014 03:59
A Pen by Rob.

Responsive Calendar

Playing with html and responsive CSS in the form of a calendar. Resize the screen to see how it changes.

A Pen by Rob on CodePen.

License.

@spivurno
spivurno / gw-gravity-forms-tag-editor.php
Last active October 31, 2022 19:26
Gravity Wiz // Gravity Forms // Tag Editor
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-tag-editor.php
*/
/**
* Gravity Wiz // Gravity Forms // Tag Editor
*
* Provides the ability to more easily modify the properties of specific tags in Gravity Forms markup. Currently supports the <form> tag.
@pbelyaev
pbelyaev / SocialiteCallbackMiddleware.php
Last active August 26, 2022 23:32
Laravel 5.2 Socialite Middleware Example
<?php
namespace App\Http\Middleware;
use Closure;
use Laravel\Socialite\Facades\Socialite;
class SocialiteCallbackMiddleware
{
@tarasowski
tarasowski / lambda-async-await.md
Last active July 22, 2023 04:47
#Lambda - Async/Await Rules
  1. The function after await someFunc() need to return a promise. Otherwise it will not await and exit from the function. The function below will simply exit and won't wait till the background process is finished. Since async functions are waiting for Promises. The keyword await makes JavaScript wait until that promise settles and returns its result.
const hello4 = () => setTimeout(() => console.log('Hello from Hello4'), 5000)

const asycFunc = async() => {
	await hello4()
    return
}
@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 27, 2024 06:09
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

@nasrulhazim
nasrulhazim / git-log-to-csv.sh
Created January 5, 2019 21:16
Export Git Log to CSV
git log --since='26/12/2018' --date=short --pretty=format:'%h,%an,%ad,%s' > ../CHANGELOG-20190106.csv
module.exports = {
"@arkecosystem/core-event-emitter": {},
"@arkecosystem/core-logger-pino": {},
"@arkecosystem/core-database-postgres": {
connection: {
host: process.env.CORE_DB_HOST || "localhost",
port: process.env.CORE_DB_PORT || 5432,
database: process.env.CORE_DB_DATABASE || `${process.env.CORE_TOKEN}_${process.env.CORE_NETWORK_NAME}`,
user: process.env.CORE_DB_USERNAME || process.env.CORE_TOKEN,
password: process.env.CORE_DB_PASSWORD || "password",
@robrich
robrich / README.md
Last active May 7, 2024 13:24
the definitive deep dive into the .git folder

the definitive deep dive into the .git folder

Thanks for joining us for "the definitive deep dive into the .git folder". It's an incredible live-demo where we open every file in the .git folder and show what it does.

Links

Here's the links we saw: