View file0.txt
IncDecStmt = Expression ( "++" | "--" ) .
View bin_fehbg
#!/bin/bash
DIR=/home/jesse/Pictures/.wallpaper
feh --bg-scale `shuf -n1 -e $DIR/*`
View WorldMapper.php
<?php
class WorldMapper extends Mapper{
// select semua data dari tabel country
public function getCountries(){
$sql = "SELECT Name, Continent, Region from country";
$stmt = $this->db->query($sql);
$results = [];
while($row = $stmt->fetch()) {
$results[] = array_map('utf8_encode', $row);
}
View core.clj
(ns monolith.core
(:require [billing-service.server :as server]
[environ.core :refer [env]])
(:gen-class))
(def start server/start)
(def stop server/stop)
(def restart server/restart)
(defn -main [& args]
View index.html
<html>
<head>
<!--
In this example, I started with the 5-minute example provided by Google
on the following page:
https://developers.google.com/drive/
I modified the example code, so that I could write the following
View gist:d2f9bc895ead9870f666fe7e9a67b47e
fork/clone master branch: git@github.com:ctrlplusb/react-universally.git
cd [your-repo]
yarn install
edit config/index.js
change line 23:
port: getIntEnvVar('SERVER_PORT', 1337),
to:
View openpanzer-save.json
{"scenario":{"name":"Lodz - Warta River","maxTurns":25,"date":"1939-09-23T22:00:00.000Z","atmosferic":1,"latitude":3,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{"11":[{"row":1,"col":42,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":12,"facing":1,"flag":16,"destroyed":false,"player":null,"transport":{"eqid":267,"ammo":6,"fuel":0,"icon":"resources/units/images/le250.png"},"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":121,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"11","id":1}],"12":[{"row":37,"col":41,"unit":{"eqid":159,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":10,"facing":10,"flag":8,"destroyed":false,"player":null,"transport":null,"carrier":0,"moveLeft":15,"ammo":11,
View .bash_aliases
# About Aliases:
alias ls='ls --color=auto -F'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias less="less -R "
View feed.json
{"updated":"2017-02-20 02:11:38 +0000","articles":[{"title":"– Han befant seg i en mørk tilstand","link":"https://www.nrk.no/troms/xl/ut-av-morket-1.13368711"},{"title":"Viste frem opererte bryst på catwalken","link":"https://www.nrk.no/kultur/brystkreftopererte-pa-catwalken-i-new-york-1.13386089"},{"title":"– Refererte til TV-program","link":"https://www.nrk.no/urix/trump-om-sverige_-handlet-om-et-program-pa-foxnews-1.13387236"},{"title":"Rangert som USAs 12. beste president","link":"https://www.nrk.no/urix/rangerer-obama-som-usas-12.-beste-president-1.13386913"},{"title":"Fryktet for VM-formen","link":"https://www.nrk.no/sport/fryktet-at-vm-formen-ikke-skulle-komme-1.13386876"},{"title":"Oslo overtar søppelhenting – folket må betale","link":"https://www.nrk.no/ostlandssendingen/oslofolk-ma-betale-for-veireno-kollaps-1.13387014"},{"title":"Hvorfor har så mange kontorer gult lys?","link":"https://www.nrk.no/livsstil/xl/det-ubehagelige-kontoret-ditt-1.13341727"},{"title":"– Det eneste sykehuset vi kan komme ti
View MysqlToOrc.scala
import java.sql.{Array => SqlArray, _}
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apache.spark.SparkConf
import org.apache.spark.sql._
import org.apache.spark.sql.hive._
object MysqlToOrc {
def main(args: Array[String]) {