An exceptionally handsome way to track your Stack Overflow badges.
Created by Adam & Stephanie Sharp.
A Dashing widget that tracks your progress toward unearned badges on Stack Overflow.
<?php | |
namespace Jb\AdminBundle\Http; | |
use Symfony\Component\HttpFoundation\Response; | |
class CsvResponse extends Response | |
{ | |
protected $data; |
class MetadataExtension extends DataExtension { | |
static $db = array( | |
'MetaTitle' => 'Varchar(255)', | |
'MetaKeywords' => 'Varchar(1024)', | |
); | |
function updateCMSFields(FieldList $fields) { | |
$metadata_field = $fields->fieldByName('Root.Main.Metadata'); | |
$metatitle_field = new TextField('MetaTitle', $this->owner->fieldLabel('MetaTitle')); |
// Use: ><a href="list.html" class="js-back">Go back</a> | |
$('.js-back').on('click', function(evt) { | |
if (document.referrer != "") { | |
evt.preventDefault(); | |
history.back(); | |
} | |
}); |
An exceptionally handsome way to track your Stack Overflow badges.
Created by Adam & Stephanie Sharp.
A Dashing widget that tracks your progress toward unearned badges on Stack Overflow.
Please petition Github to support HTTPS on github pages: https://github.com/contact
Here's what I wrote:
Obviously, a lot of people want HTTPS for github pages:
Until recently, that would be difficult to implement but, as it turns out, the implementation is pretty much complete:
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control
and E-Tag
headers, etc.), minification, etc.
alias accio=wget | |
alias avadaKedavra='rm -f' | |
alias imperio=sudo | |
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"' | |
alias stupefy='sleep 5' | |
alias wingardiumLeviosa=mv | |
alias sonorus='set -v' | |
alias quietus='set +v' |
Made to work along with gitfiti, you can draw with this tool and then export the data and use it with gitfiti.
##Usage
Left click
to increment the color, right click
to clear the cell, clear
button to clear everything! Dragging also works!ContributionsDraw.export()
into the console.ContributionsDraw.import([...])
NOTE: This is developed for and tested in Chrome, other browsers might not support yet some ES6 stuff, you might need to compile it to ES5.
#!/bin/bash | |
echo "WARN: This will remove everything from docker: volumes, containers and images. Will you dare? [y/N] " | |
read choice | |
if [ \( "$choice" == "y" \) -o \( "$choice" == "Y" \) ] | |
then | |
sudo echo "> sudo rights [OK]" | |
sizea=`sudo du -sh /var/lib/docker/aufs` |
import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk"; | |
import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js"; | |
const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com'; | |
const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8'; | |
const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX'; | |
const SOL_MINT = 'So11111111111111111111111111111111111111112'; | |
const SOL_DECIMALS = 9; | |
const connection = new Connection(RPC_ENDPOINT); |