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 main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"time" | |
) | |
var port string |
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
params := &twitter.StreamFilterParams{ | |
Track: []string{"@ShareAsPic"}, | |
StallWarnings: twitter.Bool(true), | |
} |
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
func TweetScreenShot(username string, tweetId string) (string, error) { | |
chromedpContext, cancelCtxt := chromedp.NewContext(context.Background()) // create new tab | |
defer cancelCtxt() | |
// capture screenShot of an element | |
fname := fmt.Sprintf("%s-%s.png", username, tweetId) | |
url := fmt.Sprintf("https://twitter.com/%s/status/%s", username, tweetId) | |
var buf []byte |
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
http://pwfisher.com/nucleus/index.php?itemid=45 | |
This command line option parser supports any combination of three types of options (switches, flags and arguments) and returns a simple array. | |
<?php | |
/** | |
* CommandLine class | |
* | |
* @package Framework | |
*/ | |
/** |
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
@extends('layouts.app') | |
@section('content') | |
<div class="container prntcntnr"> | |
<div class="row justify-content-center"> | |
<h1 class="page-header col-xs-12 col-md-12"> | |
ﺃﻭاﻣﺮ اﻟﺘﺸﻐﻴﻞ | |
<span> اﻟﻌﺪﺩ : {{$orders->total()}}</span> | |
<a class="btn btn-primary btn-sl no-print" style="float: left; padding-bottom: 5px;" | |
href="{{ route('orders.create') }}"> جديد <span class="glyphicon glyphicon-plus"></span></a> | |
</h1> |
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
{ | |
"window.zoomLevel": 0, | |
"workbench.iconTheme": "material-icon-theme", | |
"material-icon-theme.showUpdateMessage": false, | |
"vsicons.dontShowNewVersionMessage": true, | |
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace", | |
// "editor.fontSize": 14, | |
// "editor.lineHeight": 25, | |
// "editor.fontFamily": "'SF Mono', Menlo, Monaco, 'Courier New', monospace", | |
"editor.lineHeight": 25, |
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
<div class="defaultValue container"> | |
<!-- Put your entiner code here --> | |
</div> |
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 main | |
import ( | |
"bytes" | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
avro "gopkg.in/avro.v0" | |
) |
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/bash | |
echo "enter username : " | |
read username | |
echo "enter password: " | |
read -s password | |
echo "enter course: " | |
read course |