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
{ | |
"first_names": { | |
} | |
} |
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
#! /usr/bin/python | |
import re | |
# from base64 import decodestring | |
import base64 | |
# import base64 | |
f = open("dump.txt","r") | |
str = f.read() | |
# str = 'lalala <img src="data:image/png;base64,iVBORw0KGg"> lalala <img src="data:image/gif;base64,iVBORw0KGg">' | |
# str = '<img src="data:image/gif;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8gIH0sKEAwKKmTiKZ8aB/f39Wsl+LFt8dgUE9PT5x5aHBwcP+AgP+WltdgYMyZfyywz78AAAAAAAD///8AAP9mZv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
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
#!/bin/sh | |
MOV_NAME="$1" | |
ffmpeg -i ${MOV_NAME}.mov -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=2 > ${MOV_NAME}.gif | |
echo "BOOM HERE IS A ${MOV_NAME}.gif" | |
read -p "Open in chrome? " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
open -a Google\ Chrome ${MOV_NAME}.gif | |
fi |
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
/* | |
* The validate method returns `true` if the entire sudoku table is valid, `false` otherwise. | |
* Expected input for this function is a variable number of Arrays, where each array | |
* represents one row of a sudoku table. | |
* | |
* For example you could expect something like this for a valid table: | |
* | |
* [ | |
* [2,9,5,7,4,3,8,6,1], | |
* [4,3,1,8,6,5,9,2,7], |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic | |
" http://amix.dk - amix@amix.dk | |
" | |
" Version: | |
" 6.0 - 01/04/17 14:24:34 | |
" | |
" Blog_post: | |
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github |
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
priority -50 | |
global !p | |
from javascript_snippets import ( | |
semi, space_before_function_paren, keyword_spacing | |
) | |
endglobal | |
########################################################################### | |
# Custom Snippets # |
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
#!/usr/bin/env bash | |
I=0 | |
FILES=() | |
while read line ; do | |
echo "$I" "$line" | |
FILES+=($line) | |
let "I++" | |
done |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @done_tasks; | |
my @todo_tasks; | |
my $todo_type = "todo"; | |
my $done_type = "done"; | |
my $last_task_type = "none"; | |
my $has_cacled_indent = 0; |
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
.mainArea { | |
--lightBlue: #BACBFF; | |
font-family: 'Roboto Mono', monospace; | |
background: var(--blue); | |
overflow: hidden; | |
height: 100vh; | |
margin: 0; | |
min-height: 100vh; | |
display: grid; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>lesson 7 arrays</title> | |
</head> | |
<body> | |
<script src="https://travisshears.com/apps/random-wiki/0.0.4--alpha3/src.7b19814e.js"></script> |
OlderNewer