π³οΈ
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
(function() { | |
const s = document.createElement('style'); | |
s.textContent = `.supportsHas:has(p):after {content: "hasHas";}`; | |
document.head.appendChild(s); | |
const supportsHas = document.createElement('div'); | |
supportsHas.classList.add('supportsHas'); | |
const p = document.createElement('p'); | |
supportsHas.appendChild(p); | |
document.body.appendChild(supportsHas); |
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
//Lets require/import the HTTP module | |
var http = require('http'); | |
var fs = require('fs'); | |
var PORT=8080; | |
var spawn = require('child_process').spawn; | |
//We need a function which handles requests and send response | |
function handleRequest(request, response) { |
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
// load a package that makes tweeting possible | |
var Twitter = require('twitter'); | |
// configure the client so it can authorize itself | |
var client = new Twitter({ | |
consumer_key: 'xyz', | |
consumer_secret: 'abc', | |
access_token_key: '012-xyz', | |
access_token_secret: 'ABC' | |
}); |
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
<?php | |
// loop 100 times | |
for ($j = 0; $j < 100; $j++) { | |
// open a file called some-file.jpg | |
// and store its data in a variable | |
$image = file_get_contents('./some-file.jpg'); | |
// loop 10 times | |
for ($i = 0; $i < 10; $i++ ) { |
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
#!/bin/bash | |
# see http://www.ffmpeg.org/faq.html 3.2 and 3.3 | |
#!/bin/bash | |
# Argument = -t test -r server -p password -v | |
usage() | |
{ | |
cat << EOF | |
Usage: $0 options |
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
#!/usr/bin/env node | |
var gd = require('node-gd'); | |
var fs = require('fs'); | |
var c; | |
var img = fs.readFileSync('b.jpg', { encoding: 'binary' }); | |
var imageBuffer = new Buffer(img, 'binary'); | |
var newBuffer; | |
var ch = ['aasd','gwer']; |