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
/* Light Backgrounds */ | |
.near-black { color: #111111 } | |
.bg-washed-yellow { background-color: #FFFCEB } | |
.dark-gray { color: #333333 } | |
.bg-near-white { background-color: #F4F4F4 } | |
.dark-gray { color: #333333 } | |
.bg-light-red { background-color: #FF725C } |
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
in ~/code/sr.ht/meta.sr.ht on master | |
$ python ./run.py | tee -a /tmp/run-log | |
Traceback (most recent call last): | |
File "./run.py", line 3, in <module> | |
from metasrht.app import app | |
File "/Users/artem/code/sr.ht/meta.sr.ht/metasrht/app.py", line 55, in <module> | |
app = MetaApp() | |
File "/Users/artem/code/sr.ht/meta.sr.ht/metasrht/app.py", line 22, in __init__ | |
from metasrht.blueprints.billing import billing | |
File "/Users/artem/code/sr.ht/meta.sr.ht/metasrht/blueprints/billing.py", line 14, in <module> |
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
package main | |
import ( | |
"log" | |
"github.com/fsnotify/fsnotify" | |
) | |
type CB func(Event) | |
type Event struct { |
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
const assert = require('assert'); | |
const path = require('path'); | |
const fs = require('fs'); | |
const {spawnSync} = require('child_process'); | |
const deps = {}; | |
const dependedBy = {}; | |
function getDependencies(packageJsonFile) { | |
assert(packageJsonFile); |
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
const Promise = require('bluebird'); | |
const puppeteer = require('puppeteer-core'); | |
const step = 3000; | |
async function Screenshot(page, y = 0) { | |
const toRemove = ['header', '.back-to-top-button', '.ad', '.bxc']; | |
await Promise.mapSeries(toRemove, (cls) => { | |
return page.$$eval(cls, elements => elements.forEach(elem => elem.remove())) | |
.catch(() => {}); |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
"net/http" | |
"context" | |
"encoding/json" | |
"github.com/gorilla/mux" |
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
diff --git a/src/Fbx2Raw.cpp b/src/Fbx2Raw.cpp | |
index a192d8e..df2afa8 100644 | |
--- a/src/Fbx2Raw.cpp | |
+++ b/src/Fbx2Raw.cpp | |
@@ -596,12 +596,14 @@ public: | |
const unsigned int blendShapeIx, | |
const unsigned int channelIx, | |
const FbxDouble deformPercent, | |
- const std::vector<TargetShape> &targetShapes | |
+ const std::vector<TargetShape> &targetShapes, |
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
(def cordMax 4) | |
(defrecord Cord [data weight left right]) | |
(defn print-cord | |
([root] (print-cord root 0)) | |
([root level] | |
(println (apply str (repeat level " ")) (get root :data "") (get root :weight "")) | |
(when-let [left (:left root)] (print-cord left (+ 2 level))) | |
(when-let [right (:right root)] (print-cord right (+ 2 level))))) |
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
$ git st | |
M lib/bsb | |
D vendor/ninja-build/ninja.darwin | |
M vendor/ocaml/bin/ocaml | |
M vendor/ocaml/bin/ocamlc | |
M vendor/ocaml/bin/ocamlc.opt | |
M vendor/ocaml/bin/ocamlcp | |
M vendor/ocaml/bin/ocamldep | |
M vendor/ocaml/bin/ocamldep.opt | |
M vendor/ocaml/bin/ocamllex |
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
#EXTM3U | |
#EXT-X-TARGETDURATION:10 | |
#EXT-X-VERSION:3 | |
#EXT-X-MEDIA-SEQUENCE:0 | |
#EXT-X-PLAYLIST-TYPE:VOD | |
#EXTINF:9.97667, | |
fileSequence0.ts | |
#EXTINF:9.97667, | |
fileSequence1.ts | |
#EXTINF:9.97667, |