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
9669 execve("./upx64/upx", ["./upx64/upx"], 0x7fffda4bdab8 /* 21 vars */) = -1 ENOEXEC (Exec format error) | |
9669 write(2, "strace: exec: Exec format error\n", 32) = 32 | |
9669 getpid() = 9669 | |
9669 exit_group(1) = ? | |
9669 +++ exited with 1 +++ |
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 | |
set -x | |
rm -rf test-repo | |
rm -rf test-submodule | |
mkdir test-submodule | |
pushd test-submodule |
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" | |
"io/ioutil" | |
"github.com/playlyfe/go-graphql" | |
gql "github.com/your-project/your-graphql-mutations-and-queries" | |
) | |
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" | |
"io/ioutil" | |
"github.com/playlyfe/go-graphql" | |
gql "github.com/your-project/your-graphql-mutations-and-queries" | |
) | |
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
/* @flow */ | |
import generate from '@playlyfe/gql/lib/tools/generate'; | |
import path from 'path'; | |
import fs from 'fs'; | |
// This script reads in the schema files based off the configOptions.cwd folder | |
// and generates a schema.js (instead of schema.json) file and | |
// outputs it to the specified output folder | |
// Usually, you'd place this script just before running webpack, |
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
import ReactSelect from 'react-select'; | |
import Portal from 'react-overlays/lib/Portal'; | |
import 'react-select/dist/react-select.css'; // I'm using css-modules, but you can use whatever you like | |
import css from './Select.css'; | |
import defaultMenuRenderer from 'react-select/lib/utils/defaultMenuRenderer'; // this renders the actual menu - we can reuse the same component | |
class _SelectMenu extends React.Component { | |
props: { // flow types | |
selectProps: {}, |
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
# These snippets provide a quick way to update your environment variables | |
# directly from your powershell console. Just copy paste these lines, or | |
# even better, add it to your profile as functions. | |
# refreshing env in current shell | |
$env:path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") | |
# adding path to env | |
# set path in the $_newPath variable, and it'll get set to your user environment path and persisted. | |
$_newPath=""; [System.Environment]::SetEnvironmentVariable("Path", [System.Environment]::GetEnvironmentVariable("Path", "User") + ";${_newPath}", "User") |
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
# A way to use twitter widgets with angularjs | |
YOUR_MODULE | |
.directive('plTwitterButton', ['$timeout', ($timeout) -> | |
replace: true | |
template: """ | |
<a class="twitter-share-button" | |
href="{{ href }}" | |
data-url="{{ url }}" | |
data-text="{{ text }}" |
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
Aerodynamic (instrumental) | |
Around the World (Daft Punk song) | |
Burnin' (instrumental) | |
Contact (Daft Punk song) | |
Da Funk | |
Derezzed | |
Digital Love | |
Doin' It Right | |
Face to Face (Daft Punk song) | |
Fragments of Time |
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
describe("test the UI", function() { | |
it('when the log is shown', function(next) { | |
var _this = this; | |
var promiseA, promiseB; | |
promiseA = Q.promise() // or whatever, to create a promise for this test | |
promiseB = Q.promise() // or whatever, to create a promise for this test | |
promiseA.then(function() { // promiseA and promiseB are Q promises | |
var fn; | |
fn = function(limit) { | |
return promiseB.then(function(data) { |
NewerOlder